summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-07-14 11:54:05 +1000
committerDamien Miller <djm@mindrot.org>2001-07-14 11:54:05 +1000
commitc62f1fc3ff9181894095bd505c7d54d0b5411be7 (patch)
treeef30bbe2d77bde7aefac5305825cac5c5bc44b66
parenteec0c25f2a1704b871ceafff4c3cc96dd985b63b (diff)
- (djm) Enable /etc/nologin check on PAM systems, as some lack the
pam_nologin module. Report from William Yodlowsky <bsd@openbsd.rutgers.edu>
-rw-r--r--ChangeLog7
-rw-r--r--session.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index bfe383aef..ce9cf665b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
120010713
2 - (djm) Enable /etc/nologin check on PAM systems, as some lack the
3 pam_nologin module. Report from William Yodlowsky
4 <bsd@openbsd.rutgers.edu>
5
120010711 620010711
2 - (djm) dirname(3) may modify its argument on glibc and other systems. 7 - (djm) dirname(3) may modify its argument on glibc and other systems.
3 Patch from markus@, spotted by Tom Holroyd <tomh@po.crl.go.jp> 8 Patch from markus@, spotted by Tom Holroyd <tomh@po.crl.go.jp>
@@ -5972,4 +5977,4 @@
5972 - Wrote replacements for strlcpy and mkdtemp 5977 - Wrote replacements for strlcpy and mkdtemp
5973 - Released 1.0pre1 5978 - Released 1.0pre1
5974 5979
5975$Id: ChangeLog,v 1.1384 2001/07/11 11:32:20 djm Exp $ 5980$Id: ChangeLog,v 1.1385 2001/07/14 01:54:05 djm Exp $
diff --git a/session.c b/session.c
index 8b9b7cc4b..8d7ef52ba 100644
--- a/session.c
+++ b/session.c
@@ -1050,7 +1050,7 @@ do_child(Session *s, const char *command)
1050 if (options.use_login && command != NULL) 1050 if (options.use_login && command != NULL)
1051 options.use_login = 0; 1051 options.use_login = 0;
1052 1052
1053#if !defined(USE_PAM) && !defined(HAVE_OSF_SIA) 1053#if !defined(HAVE_OSF_SIA)
1054 if (!options.use_login) { 1054 if (!options.use_login) {
1055# ifdef HAVE_LOGIN_CAP 1055# ifdef HAVE_LOGIN_CAP
1056 if (!login_getcapbool(lc, "ignorenologin", 0) && pw->pw_uid) 1056 if (!login_getcapbool(lc, "ignorenologin", 0) && pw->pw_uid)
@@ -1068,7 +1068,7 @@ do_child(Session *s, const char *command)
1068 exit(254); 1068 exit(254);
1069 } 1069 }
1070 } 1070 }
1071#endif /* USE_PAM || HAVE_OSF_SIA */ 1071#endif /* HAVE_OSF_SIA */
1072 1072
1073 /* Set login name, uid, gid, and groups. */ 1073 /* Set login name, uid, gid, and groups. */
1074 /* Login(1) does this as well, and it needs uid 0 for the "-h" 1074 /* Login(1) does this as well, and it needs uid 0 for the "-h"