Prevent sites from shooting themselves in the foot while enabling/disabling
YP by disallowing `+' entries as logins in all cases. (This handles the case of a `+' entry in the password file but YP not running, which should never happen but is easy enough to check for so we'll apply some prophylaxis.)
This commit is contained in:
parent
5887fd95f0
commit
b877ace7ed
@ -135,7 +135,7 @@ getpwnam(name)
|
||||
if(rval)
|
||||
rval = _getyppass(&_pw_passwd, name, "passwd.byname");
|
||||
}
|
||||
#else
|
||||
#endif
|
||||
/*
|
||||
* Prevent login attempts when YP is not enabled but YP entries
|
||||
* are in /etc/master.passwd.
|
||||
|
Loading…
x
Reference in New Issue
Block a user