diff options
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r-- | regress/test-exec.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 4e69658ce..a57e46e59 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: test-exec.sh,v 1.24 2004/11/25 09:39:27 dtucker Exp $ | 1 | # $OpenBSD: test-exec.sh,v 1.25 2004/12/06 10:49:56 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | #SUDO=sudo | 4 | #SUDO=sudo |
@@ -83,7 +83,9 @@ if [ "x$TEST_SSH_SCP" != "x" ]; then | |||
83 | fi | 83 | fi |
84 | 84 | ||
85 | # Path to sshd must be absolute for rexec | 85 | # Path to sshd must be absolute for rexec |
86 | SSHD=`which sshd` | 86 | if [ ! -x /$SSHD ]; then |
87 | SSHD=`which sshd` | ||
88 | fi | ||
87 | 89 | ||
88 | # these should be used in tests | 90 | # these should be used in tests |
89 | export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP | 91 | export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP |