diff options
Diffstat (limited to 'regress/sftp-cmds.sh')
-rw-r--r-- | regress/sftp-cmds.sh | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh index 1c67b6476..2e0300e16 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: |
@@ -17,20 +17,6 @@ do | |||
17 | fi | 17 | fi |
18 | done | 18 | done |
19 | 19 | ||
20 | if have_prog uname | ||
21 | then | ||
22 | case `uname` in | ||
23 | CYGWIN*) | ||
24 | os=cygwin | ||
25 | ;; | ||
26 | *) | ||
27 | os=`uname` | ||
28 | ;; | ||
29 | esac | ||
30 | else | ||
31 | os="unknown" | ||
32 | fi | ||
33 | |||
34 | # Path with embedded quote | 20 | # Path with embedded quote |
35 | QUOTECOPY=${COPY}".\"blah\"" | 21 | QUOTECOPY=${COPY}".\"blah\"" |
36 | QUOTECOPY_ARG=${COPY}'.\"blah\"' | 22 | QUOTECOPY_ARG=${COPY}'.\"blah\"' |
@@ -40,7 +26,7 @@ SPACECOPY_ARG="${COPY}\ this\ has\ spaces.txt" | |||
40 | # File with glob metacharacters | 26 | # File with glob metacharacters |
41 | GLOBMETACOPY="${COPY} [metachar].txt" | 27 | GLOBMETACOPY="${COPY} [metachar].txt" |
42 | 28 | ||
43 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 ${BATCH}.* | 29 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 |
44 | mkdir ${COPY}.dd | 30 | mkdir ${COPY}.dd |
45 | 31 | ||
46 | verbose "$tid: lls" | 32 | verbose "$tid: lls" |
@@ -242,7 +228,7 @@ verbose "$tid: lchdir" | |||
242 | echo "lchdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ | 228 | echo "lchdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |
243 | || fail "lchdir failed" | 229 | || fail "lchdir failed" |
244 | 230 | ||
245 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 ${BATCH}.* | 231 | rm -rf ${COPY} ${COPY}.1 ${COPY}.2 ${COPY}.dd ${COPY}.dd2 |
246 | rm -rf ${QUOTECOPY} "$SPACECOPY" "$GLOBMETACOPY" | 232 | rm -rf ${QUOTECOPY} "$SPACECOPY" "$GLOBMETACOPY" |
247 | 233 | ||
248 | 234 | ||