diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: session.c,v 1.272 2014/07/03 03:34:09 djm Exp $ */ | 1 | /* $OpenBSD: session.c,v 1.273 2014/07/03 22:40:43 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
4 | * All rights reserved | 4 | * All rights reserved |
@@ -1359,7 +1359,8 @@ do_rc_files(Session *s, const char *shell) | |||
1359 | 1359 | ||
1360 | /* ignore _PATH_SSH_USER_RC for subsystems and admin forced commands */ | 1360 | /* ignore _PATH_SSH_USER_RC for subsystems and admin forced commands */ |
1361 | if (!s->is_subsystem && options.adm_forced_command == NULL && | 1361 | if (!s->is_subsystem && options.adm_forced_command == NULL && |
1362 | !no_user_rc && stat(_PATH_SSH_USER_RC, &st) >= 0) { | 1362 | !no_user_rc && options.permit_user_rc && |
1363 | stat(_PATH_SSH_USER_RC, &st) >= 0) { | ||
1363 | snprintf(cmd, sizeof cmd, "%s -c '%s %s'", | 1364 | snprintf(cmd, sizeof cmd, "%s -c '%s %s'", |
1364 | shell, _PATH_BSHELL, _PATH_SSH_USER_RC); | 1365 | shell, _PATH_BSHELL, _PATH_SSH_USER_RC); |
1365 | if (debug_flag) | 1366 | if (debug_flag) |