diff options
author | Damien Miller <djm@mindrot.org> | 2008-03-27 11:03:05 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2008-03-27 11:03:05 +1100 |
commit | 95e80955f27d55c7a02724e72bdcb1a4ca619f25 (patch) | |
tree | 1fa829fa8a4d5aa4ae93ab18b3b2f7a141e04cb9 /session.c | |
parent | 55360e1ceb62c341d5c380bf6d94050d17f59930 (diff) |
- djm@cvs.openbsd.org 2008/03/26 21:28:14
[auth-options.c auth-options.h session.c sshd.8]
add no-user-rc authorized_keys option to disable execution of ~/.ssh/rc
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: session.c,v 1.232 2008/03/25 23:01:41 djm Exp $ */ | 1 | /* $OpenBSD: session.c,v 1.233 2008/03/26 21:28:14 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 |
@@ -1204,7 +1204,7 @@ do_rc_files(Session *s, const char *shell) | |||
1204 | 1204 | ||
1205 | /* ignore _PATH_SSH_USER_RC for subsystems and admin forced commands */ | 1205 | /* ignore _PATH_SSH_USER_RC for subsystems and admin forced commands */ |
1206 | if (!s->is_subsystem && options.adm_forced_command == NULL && | 1206 | if (!s->is_subsystem && options.adm_forced_command == NULL && |
1207 | (stat(_PATH_SSH_USER_RC, &st) >= 0)) { | 1207 | !no_user_rc && (stat(_PATH_SSH_USER_RC, &st) >= 0)) { |
1208 | snprintf(cmd, sizeof cmd, "%s -c '%s %s'", | 1208 | snprintf(cmd, sizeof cmd, "%s -c '%s %s'", |
1209 | shell, _PATH_BSHELL, _PATH_SSH_USER_RC); | 1209 | shell, _PATH_BSHELL, _PATH_SSH_USER_RC); |
1210 | if (debug_flag) | 1210 | if (debug_flag) |