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:
wollman 1995-01-17 23:17:38 +00:00
parent 5887fd95f0
commit b877ace7ed

View File

@ -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.