summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index 2920b26cf..5ea87f0f9 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.354 2008/02/13 22:38:17 djm Exp $ */ 1/* $OpenBSD: sshd.c,v 1.355 2008/02/14 13:10:31 mbalmer Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1387,7 +1387,7 @@ main(int ac, char **av)
1387 } 1387 }
1388 if (rexeced_flag || inetd_flag) 1388 if (rexeced_flag || inetd_flag)
1389 rexec_flag = 0; 1389 rexec_flag = 0;
1390 if (rexec_flag && (av[0] == NULL || *av[0] != '/')) 1390 if (!test_flag && (rexec_flag && (av[0] == NULL || *av[0] != '/')))
1391 fatal("sshd re-exec requires execution with an absolute path"); 1391 fatal("sshd re-exec requires execution with an absolute path");
1392 if (rexeced_flag) 1392 if (rexeced_flag)
1393 closefrom(REEXEC_MIN_FREE_FD); 1393 closefrom(REEXEC_MIN_FREE_FD);