diff options
author | wollman <wollman@FreeBSD.org> | 1995-01-17 23:17:38 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-01-17 23:17:38 +0000 |
commit | b877ace7ed5f874de256edf1801bf669d19d3f09 (patch) | |
tree | 5217d3c87260b98788420fd2f5a52c854ba0233d /lib | |
parent | 5887fd95f0ffa01086439978a56a7eb58559e155 (diff) | |
download | FreeBSD-src-b877ace7ed5f874de256edf1801bf669d19d3f09.zip FreeBSD-src-b877ace7ed5f874de256edf1801bf669d19d3f09.tar.gz |
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.)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/getpwent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index b90118f..01f3bcc 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -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. |