diff options
author | Darren Tucker <dtucker@zip.com.au> | 2012-06-30 15:04:13 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2012-06-30 15:04:13 +1000 |
commit | ff32d7c9d20d42db364525d92c27a7c7491caf0d (patch) | |
tree | 61459ac07513d89dc6e83f3ae392a410cac44d31 /regress | |
parent | 4430a86c14dc0e043f8938b39bf389af1200f937 (diff) |
- djm@cvs.openbsd.org 2012/06/01 00:52:52
[regress/sftp-cmds.sh]
don't delete .* on cleanup due to unintended env expansion; pointed out in
bz#2014 by openssh AT roumenpetrov.info
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sftp-cmds.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh index 1c67b6476..d10d01a31 100644 --- a/regress/sftp-cmds.sh +++ b/regress/sftp-cmds.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: sftp-cmds.sh,v 1.11 2010/12/04 00:21:19 djm Exp $ | 1 | # $OpenBSD: sftp-cmds.sh,v 1.12 2012/06/01 00:52:52 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | # XXX - TODO: | 4 | # XXX - TODO: |
@@ -40,7 +40,7 @@ SPACECOPY_ARG="${COPY}\ this\ has\ spaces.txt" | |||
40 | # File with glob metacharacters | 40 | # File with glob metacharacters |
41 | GLOBMETACOPY="${COPY} [metachar].txt" | 41 | GLOBMETACOPY="${COPY} [metachar].txt" |
42 | 42 | ||
43 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 ${BATCH}.* | 43 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 |
44 | mkdir ${COPY}.dd | 44 | mkdir ${COPY}.dd |
45 | 45 | ||
46 | verbose "$tid: lls" | 46 | verbose "$tid: lls" |
@@ -242,7 +242,7 @@ verbose "$tid: lchdir" | |||
242 | echo "lchdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ | 242 | echo "lchdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
243 | || fail "lchdir failed" | 243 | || fail "lchdir failed" |
244 | 244 | ||
245 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 ${BATCH}.* | 245 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 |
246 | rm -rf ${QUOTECOPY} "$SPACECOPY" "$GLOBMETACOPY" | 246 | rm -rf ${QUOTECOPY} "$SPACECOPY" "$GLOBMETACOPY" |
247 | 247 | ||
248 | 248 | ||