diff options
author | dtucker <dtucker> | 2005-08-23 13:32:05 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2005-08-23 13:32:05 +0000 |
commit | 615c58e5d65be34caf5c3b6196a8d14bee1bb85b (patch) | |
tree | 5947cb5d6ecae2c06b67d6afebaa480fad35ca52 /regress | |
parent | a52bbe60cea40b24bee23d36a0ed4d64c123e7f6 (diff) | |
download | openssh-615c58e5d65be34caf5c3b6196a8d14bee1bb85b.tar.gz |
- (dtucker) [regress/test-exec.sh] Do not prepend an extra "/" to a fully-
qualified sshd pathname since some systems (eg Cygwin) may consider "/foo"
and "//foo" to be different. Spotted by vinschen at redhat.com.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/test-exec.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index bd0c025b..4b3a70eb 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -96,9 +96,10 @@ if [ "x$TEST_SSH_SCP" != "x" ]; then fi # Path to sshd must be absolute for rexec -if [ ! -x /$SSHD ]; then - SSHD=`which sshd` -fi +case "$SSHD" in +/*) ;; +*) SSHD=`which sshd` ;; +esac if [ "x$TEST_SSH_LOGFILE" = "x" ]; then TEST_SSH_LOGFILE=/dev/null |