diff options
author | 2004-12-06 10:49:56 +0000 | |
---|---|---|
committer | 2004-12-06 10:49:56 +0000 | |
commit | 8510fd46e1031d3e66005f4f97a0a6928b469e3d (patch) | |
tree | 71bd9a7d67ffbd9398464cc781237465c6b9589b | |
parent | move gai_strerror into its own page, and make the get* pages more readable; (diff) | |
download | wireguard-openbsd-8510fd46e1031d3e66005f4f97a0a6928b469e3d.tar.xz wireguard-openbsd-8510fd46e1031d3e66005f4f97a0a6928b469e3d.zip |
Check if TEST_SSH_SSHD is a full path to sshd before searching; ok markus@
-rw-r--r-- | regress/usr.bin/ssh/test-exec.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/test-exec.sh b/regress/usr.bin/ssh/test-exec.sh index 458aecfd462..c5a00fc1798 100644 --- a/regress/usr.bin/ssh/test-exec.sh +++ b/regress/usr.bin/ssh/test-exec.sh @@ -1,4 +1,4 @@ -# $OpenBSD: test-exec.sh,v 1.24 2004/11/25 09:39:27 dtucker Exp $ +# $OpenBSD: test-exec.sh,v 1.25 2004/12/06 10:49:56 dtucker Exp $ # Placed in the Public Domain. USER=`id -un` @@ -77,7 +77,9 @@ if [ "x$TEST_SSH_SCP" != "x" ]; then fi # Path to sshd must be absolute for rexec -SSHD=`which sshd` +if [ ! -x /$SSHD ]; then + SSHD=`which sshd` +fi # these should be used in tests export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP |