Use setpwent()/endpwent() + all the shadow variants to make sure
we don't inadvertantly leak an fd to the child. Apparently Linux's shadow routines leave the fd open even if you don't call setspent(). Reported by mike@gistnet.com; different patch used.
This commit is contained in:
Reference in New Issue
Block a user