diff options
Diffstat (limited to 'regress/sftp-cmds.sh')
-rw-r--r-- | regress/sftp-cmds.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh index c4d6ae2de..26d735164 100644 --- a/regress/sftp-cmds.sh +++ b/regress/sftp-cmds.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: sftp-cmds.sh,v 1.10 2009/08/13 01:11:55 djm Exp $ | 1 | # $OpenBSD: sftp-cmds.sh,v 1.10 2010/12/04 00:21:19 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | # XXX - TODO: | 4 | # XXX - TODO: |
@@ -209,7 +209,13 @@ test -d ${COPY}.dd2 || fail "missing newname after rename directory" | |||
209 | 209 | ||
210 | verbose "$tid: ln" | 210 | verbose "$tid: ln" |
211 | echo "ln ${COPY}.1 ${COPY}.2" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "ln failed" | 211 | echo "ln ${COPY}.1 ${COPY}.2" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "ln failed" |
212 | test -h ${COPY}.2 || fail "missing file after ln" | 212 | test -f ${COPY}.2 || fail "missing file after ln" |
213 | cmp ${COPY}.1 ${COPY}.2 || fail "created file is not equal after ln" | ||
214 | |||
215 | verbose "$tid: ln -s" | ||
216 | rm -f ${COPY}.2 | ||
217 | echo "ln -s ${COPY}.1 ${COPY}.2" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 || fail "ln -s failed" | ||
218 | test -h ${COPY}.2 || fail "missing file after ln -s" | ||
213 | 219 | ||
214 | verbose "$tid: mkdir" | 220 | verbose "$tid: mkdir" |
215 | echo "mkdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ | 221 | echo "mkdir ${COPY}.dd" | ${SFTP} -D ${SFTPSERVER} >/dev/null 2>&1 \ |