diff options
author | Damien Miller <djm@mindrot.org> | 2009-02-16 15:21:39 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2009-02-16 15:21:39 +1100 |
commit | 3f94aaf38c815f0aa72c3c7bf40491c8d456e929 (patch) | |
tree | cbed0240d51a5217b546279dc7b7bc1b34d0c6cc | |
parent | 6385e758dfbc72d461a68cd19819e5f9d41e555c (diff) | |
download | openssh-git-3f94aaf38c815f0aa72c3c7bf40491c8d456e929.tar.gz |
- (djm) [regress/conch-ciphers.sh regress/putty-ciphers.sh]
[regress/putty-kex.sh regress/putty-transfer.sh] Downgrade disabled
interop tests from FATAL error to a warning. Allows some interop
tests to proceed if others are missing necessary prerequisites.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | openbsd-compat/xmmap.c | 5 | ||||
-rw-r--r-- | regress/conch-ciphers.sh | 3 | ||||
-rw-r--r-- | regress/putty-ciphers.sh | 3 | ||||
-rw-r--r-- | regress/putty-kex.sh | 3 | ||||
-rw-r--r-- | regress/putty-transfer.sh | 3 |
6 files changed, 18 insertions, 7 deletions
@@ -1,3 +1,9 @@ +20090216 + - (djm) [regress/conch-ciphers.sh regress/putty-ciphers.sh] + [regress/putty-kex.sh regress/putty-transfer.sh] Downgrade disabled + interop tests from FATAL error to a warning. Allows some interop + tests to proceed if others are missing necessary prerequisites. + 20090214 - (djm) OpenBSD CVS Sync - dtucker@cvs.openbsd.org 2009/02/02 11:15:14 @@ -5163,5 +5169,5 @@ OpenServer 6 and add osr5bigcrypt support so when someone migrates passwords between UnixWare and OpenServer they will still work. OK dtucker@ -$Id: ChangeLog,v 1.5195 2009/02/14 07:00:52 djm Exp $ +$Id: ChangeLog,v 1.5196 2009/02/16 04:21:39 djm Exp $ diff --git a/openbsd-compat/xmmap.c b/openbsd-compat/xmmap.c index 23efe388..04c6babc 100644 --- a/openbsd-compat/xmmap.c +++ b/openbsd-compat/xmmap.c @@ -23,7 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* $Id: xmmap.c,v 1.14 2007/06/11 02:52:24 djm Exp $ */ +/* $Id: xmmap.c,v 1.15 2009/02/16 04:21:40 djm Exp $ */ #include "includes.h" @@ -71,7 +71,8 @@ xmmap(size_t size) fatal("mkstemp(\"%s\"): %s", MM_SWAP_TEMPLATE, strerror(errno)); unlink(tmpname); - ftruncate(tmpfd, size); + if (ftruncate(tmpfd, size) != 0) + fatal("%s: ftruncate: %s", __func__, strerror(errno)); address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_SHARED, tmpfd, (off_t)0); close(tmpfd); diff --git a/regress/conch-ciphers.sh b/regress/conch-ciphers.sh index 84b19061..5b65cd99 100644 --- a/regress/conch-ciphers.sh +++ b/regress/conch-ciphers.sh @@ -7,7 +7,8 @@ DATA=/bin/ls COPY=${OBJ}/copy if test "x$REGRESS_INTEROP_CONCH" != "xyes" ; then - fatal "conch interop tests not enabled" + echo "conch interop tests not enabled" + exit 0 fi start_sshd diff --git a/regress/putty-ciphers.sh b/regress/putty-ciphers.sh index 44105362..928ea60d 100644 --- a/regress/putty-ciphers.sh +++ b/regress/putty-ciphers.sh @@ -7,7 +7,8 @@ DATA=/bin/ls COPY=${OBJ}/copy if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then - fatal "putty interop tests not enabled" + echo "putty interop tests not enabled" + exit 0 fi for c in aes blowfish 3des arcfour aes128-ctr aes192-ctr aes256-ctr ; do diff --git a/regress/putty-kex.sh b/regress/putty-kex.sh index 2534b857..293885a8 100644 --- a/regress/putty-kex.sh +++ b/regress/putty-kex.sh @@ -7,7 +7,8 @@ DATA=/bin/ls COPY=${OBJ}/copy if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then - fatal "putty interop tests not enabled" + echo "putty interop tests not enabled" + exit 0 fi for k in dh-gex-sha1 dh-group1-sha1 dh-group14-sha1 ; do diff --git a/regress/putty-transfer.sh b/regress/putty-transfer.sh index 6b21f3be..9e1e1550 100644 --- a/regress/putty-transfer.sh +++ b/regress/putty-transfer.sh @@ -7,7 +7,8 @@ DATA=/bin/ls COPY=${OBJ}/copy if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then - fatal "putty interop tests not enabled" + echo "putty interop tests not enabled" + exit 0 fi # XXX support protocol 1 too |