From 1eb40cf514eaf0abb70442c258d06fbf5ce3b03f Mon Sep 17 00:00:00 2001 From: Tim Rice Date: Tue, 9 Sep 2003 08:35:20 -0700 Subject: [regress/sftp-badcmds.sh regress/sftp-cmds.sh] Fix errors like UX:rm: ERROR: Cannot remove '.' or '..' --- ChangeLog | 4 +++- regress/sftp-badcmds.sh | 4 ++-- regress/sftp-cmds.sh | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e848eb5e..1f042d646 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ source tree. - (tim) [regress/agent-timeout.sh] s/TIMEOUT/SSHAGENT_TIMEOUT/ Fixes conflict with shell read-only variable. + - (tim) [regress/sftp-badcmds.sh regress/sftp-cmds.sh] Fix errors like + UX:rm: ERROR: Cannot remove '.' or '..' 20030908 - (tim) [configure.ac openbsd-compat/getrrsetbyname.c] wrap _getshort and @@ -1050,4 +1052,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.2974 2003/09/09 15:27:40 tim Exp $ +$Id: ChangeLog,v 1.2975 2003/09/09 15:35:20 tim Exp $ diff --git a/regress/sftp-badcmds.sh b/regress/sftp-badcmds.sh index 4fe32effa..a6a19409d 100644 --- a/regress/sftp-badcmds.sh +++ b/regress/sftp-badcmds.sh @@ -9,7 +9,7 @@ NONEXIST=/NONEXIST.$$ COPY=${OBJ}/copy GLOBFILES=`(cd /bin;echo l*)` -rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${BATCH}.* +rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd rm -f ${COPY} verbose "$tid: get nonexistent" @@ -73,6 +73,6 @@ verbose "$tid: glob put files to local file" echo "put /bin/l* $COPY" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 cmp ${DATA2} ${COPY} || fail "put successed when it should have failed" -rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${BATCH}.* +rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh index db03c33b8..1237720f9 100644 --- a/regress/sftp-cmds.sh +++ b/regress/sftp-cmds.sh @@ -35,7 +35,7 @@ fi QUOTECOPY=${COPY}".\"blah\"" QUOTECOPY_ARG=${COPY}'.\"blah\"' -rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 ${BATCH}.* +rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 mkdir ${COPY}.dd verbose "$tid: lls" @@ -190,6 +190,6 @@ verbose "$tid: lchdir" echo "lchdir ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ || fail "lchdir failed" -rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 ${BATCH}.* +rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 -- cgit v1.2.3