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

Tomasz Kłoczko kloczek at zie.pg.gda.pl
Tue Nov 29 23:10:23 UTC 2005


Dnia 29-11-2005, wto o godzinie 22:47 +0100, Nicolas François
napisał(a):
> 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.

getpwnam_r() it is only threas safe version od getpwnam(). chfn and
shadow do not uses threads.
For me it looks like bug in PAM so I don't see any things for adjust/fix
on shadow level.

kloczek





More information about the Pkg-shadow-devel mailing list