summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--session.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 993fe76c1..c9b1ec67a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -37,6 +37,9 @@
37 [session.c sshd_config.5] 37 [session.c sshd_config.5]
38 ignore ~/.ssh/rc if a sshd_config ForceCommand is specified; 38 ignore ~/.ssh/rc if a sshd_config ForceCommand is specified;
39 from dtucker@ ok deraadt@ djm@ 39 from dtucker@ ok deraadt@ djm@
40 - djm@cvs.openbsd.org 2008/03/25 23:01:41
41 [session.c]
42 last patch had backwards test; spotted by termim AT gmail.com
40 43
4120080315 4420080315
42 - (djm) [regress/test-exec.sh] Quote putty-related variables in case they are 45 - (djm) [regress/test-exec.sh] Quote putty-related variables in case they are
@@ -3805,4 +3808,4 @@
3805 OpenServer 6 and add osr5bigcrypt support so when someone migrates 3808 OpenServer 6 and add osr5bigcrypt support so when someone migrates
3806 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 3809 passwords between UnixWare and OpenServer they will still work. OK dtucker@
3807 3810
3808$Id: ChangeLog,v 1.4887 2008/03/27 00:02:02 djm Exp $ 3811$Id: ChangeLog,v 1.4888 2008/03/27 00:02:27 djm Exp $
diff --git a/session.c b/session.c
index 3dcf222f5..6d9e36e46 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: session.c,v 1.231 2008/03/25 11:58:02 djm Exp $ */ 1/* $OpenBSD: session.c,v 1.232 2008/03/25 23:01:41 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
@@ -1203,7 +1203,7 @@ do_rc_files(Session *s, const char *shell)
1203 s->display != NULL && s->auth_proto != NULL && s->auth_data != NULL; 1203 s->display != NULL && s->auth_proto != NULL && s->auth_data != NULL;
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 (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);