Hi!
> > 1. misusage of getpwnam causes ltpuser1 and ltpuser2 to point
> > to same passwd structure, from getpwnam(3):
> > "The return value may point to a static area, and may be overwritten by
> > subsequent calls to getpwent(3)."
> > Fix this by copying the results from returned pointer.
> 
> I see, that was caused by replacing the my_getpwnam() by
> SAFE_GETPWNAM().
> 
> Anyway my_getpwnam() is wrong hackend interface, we should get rid of
> it. For next time Garrett note that getpwnam() is one of these
> non-reentrant interfaces and do it correctly ;).

I've just commited a little better patch for the getpwnam() issue. Could
you please create patch that fixes the race condition only (against the
latest git).

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to