diff options
author | nectar <nectar@FreeBSD.org> | 2001-01-09 16:25:22 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2001-01-09 16:25:22 +0000 |
commit | d73c56cb833e9a765d917dd3a51d8f1b710cab87 (patch) | |
tree | d1cce83adf0e621859e6e37e0985ed4eda85eb8b /security/krb5-17 | |
parent | f033e1ef13ff8c116b6b41a20b3db44402a5dcaa (diff) | |
download | FreeBSD-ports-d73c56cb833e9a765d917dd3a51d8f1b710cab87.zip FreeBSD-ports-d73c56cb833e9a765d917dd3a51d8f1b710cab87.tar.gz |
kshd has /etc/nologin hardcoded instead of using _PATH_NOLOGIN
from <paths.h> (if available) like login.krb5 does. As a result,
on FreeBSD 4.2 these two programs end up using different paths
for the nologin file (which is /var/run/nologin on FreeBSD).
Submitted by: <djm@test.pubnix.com>
Diffstat (limited to 'security/krb5-17')
-rw-r--r-- | security/krb5-17/files/patch-bc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/security/krb5-17/files/patch-bc b/security/krb5-17/files/patch-bc new file mode 100644 index 0000000..c80d941 --- /dev/null +++ b/security/krb5-17/files/patch-bc @@ -0,0 +1,28 @@ +--- appl/bsd/krshd.c~ Thu Jun 29 22:27:05 2000 ++++ appl/bsd/krshd.c Sat Jan 6 12:57:23 2001 +@@ -160,6 +160,16 @@ + Key_schedule v4_schedule; + #endif + ++#ifdef HAVE_PATHS_H ++#include <paths.h> ++#endif ++ ++#if defined(_PATH_NOLOGIN) ++#define NOLOGIN _PATH_NOLOGIN ++#else ++#define NOLOGIN "/etc/nologin" ++#endif ++ + #include "defines.h" + + #if HAVE_ARPA_NAMESER_H +@@ -1119,7 +1129,7 @@ + goto signout_please; + } + +- if (pwd->pw_uid && !access("/etc/nologin", F_OK)) { ++ if (pwd->pw_uid && !access(NOLOGIN, F_OK)) { + error("Logins currently disabled.\n"); + goto signout_please; + } |