summaryrefslogtreecommitdiff
path: root/session.c
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 /session.c
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>
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
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"