summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index f246b8a62..8ab981451 100644
--- a/session.c
+++ b/session.c
@@ -1317,7 +1317,7 @@ do_setup_env(Session *s, const char *shell)
1317 * Pull in any environment variables that may have 1317 * Pull in any environment variables that may have
1318 * been set by PAM. 1318 * been set by PAM.
1319 */ 1319 */
1320 if (options.use_pam) { 1320 if (options.use_pam && !options.use_login) {
1321 char **p; 1321 char **p;
1322 1322
1323 p = fetch_pam_child_environment(); 1323 p = fetch_pam_child_environment();