[Pkg-shadow-devel] Bug#341230: passwd: Partial changes with chfn other values

Nicolas François nicolas.francois at centraliens.net
Tue Nov 29 21:47:50 UTC 2005


retitle 341230 passwd: Partial changes with chfn other values
tags 341230 upstream
tags 341230 - unreproducible
thanks

Hello Tomasz,

Here is some more information.

In chfn.c, we use getpwnam to retrieve the passwd structure for the given
user.
The reason this bug appear wim pam_unix 0.76 and not with 0.79 is that
pam_unix also uses getpwnam, and thus changes the internal structure
returned (to both shadow and pam_unix).

I think we should either duplicate this structure, or use getpwnam_r.

I'm reverting the title change, since I do think it is a shadow bug (e.g.
another PAM module could still use getpwnam).

Maybe this should also be checked in the other shadow utilities.

PS: upgrading to libpam-modules 0.79 is still recommended.

Kind Regards,
-- 
Nekral




More information about the Pkg-shadow-devel mailing list