diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |