]> andersk Git - openssh.git/commitdiff
- djm@cvs.openbsd.org 2008/03/25 23:01:41
authordjm <djm>
Thu, 27 Mar 2008 00:02:27 +0000 (00:02 +0000)
committerdjm <djm>
Thu, 27 Mar 2008 00:02:27 +0000 (00:02 +0000)
     [session.c]
     last patch had backwards test; spotted by termim AT gmail.com

ChangeLog
session.c

index 188dbf9f973263b2d8d8e5ef520b8229769d732a..714a16fce88c4e4439350150f249b9838132cbaf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -37,6 +37,9 @@
      [session.c sshd_config.5]
      ignore ~/.ssh/rc if a sshd_config ForceCommand is specified;
      from dtucker@ ok deraadt@ djm@
+   - djm@cvs.openbsd.org 2008/03/25 23:01:41
+     [session.c]
+     last patch had backwards test; spotted by termim AT gmail.com
 
 20080315
  - (djm) [regress/test-exec.sh] Quote putty-related variables in case they are
index 3dcf222f59d27543bd480d4b7914948c2bf53529..6d9e36e46cc725c72d355b8a0ef5c67a90272845 100644 (file)
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.231 2008/03/25 11:58:02 djm Exp $ */
+/* $OpenBSD: session.c,v 1.232 2008/03/25 23:01:41 djm Exp $ */
 /*
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved
@@ -1203,7 +1203,7 @@ do_rc_files(Session *s, const char *shell)
            s->display != NULL && s->auth_proto != NULL && s->auth_data != NULL;
 
        /* ignore _PATH_SSH_USER_RC for subsystems and admin forced commands */
-       if (!s->is_subsystem && options.adm_forced_command != NULL &&
+       if (!s->is_subsystem && options.adm_forced_command == NULL &&
            (stat(_PATH_SSH_USER_RC, &st) >= 0)) {
                snprintf(cmd, sizeof cmd, "%s -c '%s %s'",
                    shell, _PATH_BSHELL, _PATH_SSH_USER_RC);
This page took 0.046998 seconds and 5 git commands to generate.