CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2009/03/27 06:31:31
Modified files:
lib/libc/gen : getpwent.c getgrouplist.c getgrouplist.3
usr.sbin/ypserv/mknetid: netid.5
share/man/man5 : group.5 passwd.5
Log message:
getgrouplist: If YP is #defined and enabled in /etc/group(5) and /etc/netid(5)
contains a matching entry, use that and refrain from accessing YP.
getpwnam/getpwuid: If YP is #defined and /etc/master.passwd(5) contains
a matching entry before the first YP entry, use that and stay away from YP.
Taken together, this allows a solution to the following problem pointed
out by deraadt@: When YP was configured but temporarily unavailable, even
root login would block, hindering you when trying to do repairs.
To avoid this, you can now provide a static entry for root in /etc/netid.
Using suggestions from miod@ otto@ blambert@ j...@.
"commit" deraadt@, "cool" ajacoutot@, "looks fine" j...@.