]> granicus.if.org Git - sudo/commit
Use setpwent()/endpwent() + all the shadow variants to make sure
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 10 May 2001 18:55:12 +0000 (18:55 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 10 May 2001 18:55:12 +0000 (18:55 +0000)
commit11127e34682e646bb08c807565cf4098c77b0a23
treeb792900da5195c77c79124d36fba1b5976db5c69
parent993409b90fd29bf486bd1f01b6fa53fbbd9d32ef
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.
getspwuid.c
logging.c
sudo.c