diff options
author | Damien Miller <djm@mindrot.org> | 2007-10-26 15:37:50 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2007-10-26 15:37:50 +1000 |
commit | 89437edafd157a3a01589a72d3779dafa5a64311 (patch) | |
tree | eeb97a2e719c1128b17975d0a269df9259473846 /regress/sftp-cmds.sh | |
parent | da1e4bd3bf039cc81fc2ee3f971a3ad23fa5c51c (diff) | |
download | openssh-git-89437edafd157a3a01589a72d3779dafa5a64311.tar.gz |
- (djm) [regress/sftp-cmds.sh]
Use more restrictive glob to pick up test files from /bin - some platforms
ship broken symlinks there which could spoil the test.
Diffstat (limited to 'regress/sftp-cmds.sh')
-rw-r--r-- | regress/sftp-cmds.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh index 5625c5b2..b7d7bb71 100644 --- a/regress/sftp-cmds.sh +++ b/regress/sftp-cmds.sh @@ -171,7 +171,7 @@ cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after put" rm -f ${COPY}.dd/* verbose "$tid: glob put to directory" -echo "put /bin/l* ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ +echo "put /bin/l? ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ || fail "put failed" for x in $GLOBFILES; do cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put" @@ -185,7 +185,7 @@ cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after put" rm -f ${COPY}.dd/* verbose "$tid: glob put to local dir" -(echo "cd ${COPY}.dd"; echo "put /bin/l*") | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ +(echo "cd ${COPY}.dd"; echo "put /bin/l?") | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ || fail "put failed" for x in $GLOBFILES; do cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put" |