From 4735115e4d966f5347e6f3ea0ea10797f37e4034 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 4 Sep 2003 15:24:50 +1000 Subject: [PATCH] - [regress/sftp-cmds.sh] Use portable "test" option. --- ChangeLog | 3 ++- regress/sftp-cmds.sh | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 35055a92d..61ee5a6fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,7 @@ - [regress/agent.sh regress/proto-version.sh regress/ssh-com.sh regress/test-exec.sh] Handle different was of echoing without newlines. - [regress/dynamic-forward.sh] Some "which" programs output on stderr. + - [regress/sftp-cmds.sh] Use portable "test" option. 20030903 - (djm) OpenBSD CVS Sync @@ -1010,4 +1011,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.2953 2003/09/04 05:22:01 dtucker Exp $ +$Id: ChangeLog,v 1.2954 2003/09/04 05:24:50 dtucker Exp $ diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh index c747988d1..7558f5e01 100644 --- a/regress/sftp-cmds.sh +++ b/regress/sftp-cmds.sh @@ -17,7 +17,6 @@ do fi done - # Path with embedded quote QUOTECOPY=${COPY}".\"blah\"" QUOTECOPY_ARG=${COPY}'.\"blah\"' @@ -148,7 +147,7 @@ test -d ${COPY}.dd2 || fail "missing newname after rename directory" verbose "$tid: ln" echo "ln ${COPY}.1 ${COPY}.2" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 || fail "ln failed" -test -L ${COPY}.2 || fail "missing file after ln" +test -h ${COPY}.2 || fail "missing file after ln" verbose "$tid: mkdir" echo "mkdir ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \