diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | regress/sftp-cmds.sh | 10 |
2 files changed, 11 insertions, 2 deletions
@@ -21,6 +21,9 @@ | |||
21 | - djm@cvs.openbsd.org 2010/12/04 13:31:37 | 21 | - djm@cvs.openbsd.org 2010/12/04 13:31:37 |
22 | [hostfile.c] | 22 | [hostfile.c] |
23 | fix fd leak; spotted and ok dtucker | 23 | fix fd leak; spotted and ok dtucker |
24 | - djm@cvs.openbsd.org 2010/12/04 00:21:19 | ||
25 | [regress/sftp-cmds.sh] | ||
26 | adjust for hard-link support | ||
24 | - (dtucker) [regress/Makefile] Id sync. | 27 | - (dtucker) [regress/Makefile] Id sync. |
25 | 28 | ||
26 | 20101204 | 29 | 20101204 |
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 \ |