OpenSSH
[Top] [All Lists]

[PATCH 6/6] sshd.c (main): Clear rexec_flag in test mode

To: openssh-unix-dev@mindrot.org
Subject: [PATCH 6/6] sshd.c (main): Clear rexec_flag in test mode
From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Wed, 11 Apr 2007 03:40:26 +0400
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <20070410233107.GA4984@nomad.office.altlinux.org>
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
Mail-followup-to: openssh-unix-dev@mindrot.org
References: <20070410233107.GA4984@nomad.office.altlinux.org>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
---
 openssh/sshd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

--- a/openssh/sshd.c
+++ b/openssh/sshd.c
@@ -1365,7 +1365,7 @@ main(int ac, char **av)
                        break;
                }
        }
-       if (rexeced_flag || inetd_flag)
+       if (rexeced_flag || inetd_flag || test_flag)
                rexec_flag = 0;
        if (rexec_flag && (av[0] == NULL || *av[0] != '/'))
                fatal("sshd re-exec requires execution with an absolute path");

-- 
ldv

Attachment: pgpS22CWk320R.pgp
Description: PGP signature

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
<Prev in Thread] Current Thread [Next in Thread>