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