- (dtucker) [dynamic-forward.sh forwarding.sh sftp-batch.sh (all regress/)]

Add ${EXEEXT}: required to work on Cygwin.
This commit is contained in:
Darren Tucker 2003-09-07 09:28:03 +10:00
parent 57ac36ffb4
commit d199b6d69b
4 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,8 @@
20030907 20030907
- (dtucker) [agent-ptrace.sh dynamic-forward.sh (all regress/)] - (dtucker) [agent-ptrace.sh dynamic-forward.sh (all regress/)]
Put "which" inside quotes. Put "which" inside quotes.
- (dtucker) [dynamic-forward.sh forwarding.sh sftp-batch.sh (all regress/)]
Add ${EXEEXT}: required to work on Cygwin.
20030906 20030906
- (dtucker) [acconfig.h configure.ac uidswap.c] Prefer setuid/setgid on AIX. - (dtucker) [acconfig.h configure.ac uidswap.c] Prefer setuid/setgid on AIX.
@ -1028,4 +1030,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.2963 2003/09/06 23:22:21 dtucker Exp $ $Id: ChangeLog,v 1.2964 2003/09/06 23:28:03 dtucker Exp $

View File

@ -5,6 +5,7 @@ tid="dynamic forwarding"
PORT=4242 PORT=4242
FWDPORT=4243 FWDPORT=4243
DATA=/bin/ls${EXEEXT}
if [ -x "`which nc 2>&1`" ] && nc -h 2>&1 | grep "x proxy address" >/dev/null; then if [ -x "`which nc 2>&1`" ] && nc -h 2>&1 | grep "x proxy address" >/dev/null; then
proxycmd="nc -x 127.0.0.1:$FWDPORT -X" proxycmd="nc -x 127.0.0.1:$FWDPORT -X"
@ -28,9 +29,9 @@ for p in 1 2; do
trace "testing ssh protocol $p socks version $s host $h" trace "testing ssh protocol $p socks version $s host $h"
${SSH} -F $OBJ/ssh_config \ ${SSH} -F $OBJ/ssh_config \
-o "ProxyCommand ${proxycmd}${s} $h $PORT" \ -o "ProxyCommand ${proxycmd}${s} $h $PORT" \
somehost cat /bin/ls > $OBJ/ls.copy somehost cat $DATA > $OBJ/ls.copy
test -f $OBJ/ls.copy || fail "failed copy /bin/ls" test -f $OBJ/ls.copy || fail "failed copy $DATA"
cmp /bin/ls $OBJ/ls.copy || fail "corrupted copy of /bin/ls" cmp $DATA $OBJ/ls.copy || fail "corrupted copy of $DATA"
done done
done done

View File

@ -2,6 +2,7 @@
# Placed in the Public Domain. # Placed in the Public Domain.
tid="local and remote forwarding" tid="local and remote forwarding"
DATA=/bin/ls${EXEEXT}
start_sshd start_sshd
@ -25,9 +26,9 @@ for p in 1 2; do
trace "transfer over forwarded channels and check result" trace "transfer over forwarded channels and check result"
${SSH} -$q -F $OBJ/ssh_config -p$last -o 'ConnectionAttempts=4' \ ${SSH} -$q -F $OBJ/ssh_config -p$last -o 'ConnectionAttempts=4' \
somehost cat /bin/ls > $OBJ/ls.copy somehost cat $DATA > $OBJ/ls.copy
test -f $OBJ/ls.copy || fail "failed copy /bin/ls" test -f $OBJ/ls.copy || fail "failed copy $DATA"
cmp /bin/ls $OBJ/ls.copy || fail "corrupted copy of /bin/ls" cmp $DATA $OBJ/ls.copy || fail "corrupted copy of $DATA"
sleep 10 sleep 10
done done

View File

@ -3,7 +3,7 @@
tid="sftp batchfile" tid="sftp batchfile"
DATA=/bin/ls DATA=/bin/ls${EXEEXT}
COPY=${OBJ}/copy COPY=${OBJ}/copy
BATCH=${OBJ}/sftp-batch BATCH=${OBJ}/sftp-batch