diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | regress/scp.sh | 9 |
2 files changed, 12 insertions, 2 deletions
@@ -66,6 +66,9 @@ | |||
66 | - djm@cvs.openbsd.org 2006/01/31 10:23:23 | 66 | - djm@cvs.openbsd.org 2006/01/31 10:23:23 |
67 | [scp.sh] | 67 | [scp.sh] |
68 | regression test for CVE-2006-0225 written by dtucker@ | 68 | regression test for CVE-2006-0225 written by dtucker@ |
69 | - djm@cvs.openbsd.org 2006/01/31 10:36:33 | ||
70 | [scp.sh] | ||
71 | regress test for "scp a b c" where "c" is not a directory | ||
69 | 72 | ||
70 | 20060129 | 73 | 20060129 |
71 | - (dtucker) [configure.ac opensshd.init.in] Bug #1144: Use /bin/sh for the | 74 | - (dtucker) [configure.ac opensshd.init.in] Bug #1144: Use /bin/sh for the |
@@ -3791,4 +3794,4 @@ | |||
3791 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 3794 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
3792 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 3795 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
3793 | 3796 | ||
3794 | $Id: ChangeLog,v 1.4110 2006/01/31 11:06:14 djm Exp $ | 3797 | $Id: ChangeLog,v 1.4111 2006/01/31 11:06:41 djm Exp $ |
diff --git a/regress/scp.sh b/regress/scp.sh index bfda670bb..c5d412dd9 100644 --- a/regress/scp.sh +++ b/regress/scp.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: scp.sh,v 1.6 2006/01/31 10:23:23 djm Exp $ | 1 | # $OpenBSD: scp.sh,v 1.7 2006/01/31 10:36:33 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="scp" | 4 | tid="scp" |
@@ -116,5 +116,12 @@ for i in 0 1 2 3 4; do | |||
116 | [ -d ${DIR}/dotpathdir ] && fail "allows dir creation outside of subdir" | 116 | [ -d ${DIR}/dotpathdir ] && fail "allows dir creation outside of subdir" |
117 | done | 117 | done |
118 | 118 | ||
119 | verbose "$tid: detect non-directory target" | ||
120 | scpclean | ||
121 | echo a > ${COPY} | ||
122 | echo b > ${COPY2} | ||
123 | $SCP $scpopts ${DATA} ${COPY} ${COPY2} | ||
124 | cmp ${COPY} ${COPY2} >/dev/null && fail "corrupt target" | ||
125 | |||
119 | scpclean | 126 | scpclean |
120 | rm -f ${OBJ}/scp-ssh-wrapper.scp | 127 | rm -f ${OBJ}/scp-ssh-wrapper.scp |