[PATCH] getpwent_list bug

Bostjan Golob golob at gimb.org
Mon Feb 9 17:42:39 GMT 2004

while testing samba 3.0.2rc2 (and since today, 3.0.2), I came across a
bug while doing querygroupmem. After some hunting, it appears that the
bug itself is in getpwent_list function, where pw_name member of
structure gets overwritten with pw_gecos, pw_dir and pw_shell while
copying the passwd structure. Patch attached.

Bostjan Golob 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba_302_pwent.patch
Type: text/x-patch
Size: 969 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20040209/05bc7ea7/samba_302_pwent.bin

More information about the samba-technical mailing list