summaryrefslogtreecommitdiffstats
path: root/regress/putty-transfer.sh
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2020-01-23 12:19:12 +0100
committerDarren Tucker <dtucker@dtucker.net>2020-01-23 12:34:37 +0100
commit415192348a5737a960f6d1b292a17b64d55b542c (patch)
tree8d486539ea102e6b3f1fb0ffb919db5b3c0fa2be /regress/putty-transfer.sh
parentupstream: Fix typo in comment. (diff)
downloadopenssh-415192348a5737a960f6d1b292a17b64d55b542c.tar.xz
openssh-415192348a5737a960f6d1b292a17b64d55b542c.zip
upstream: Handle zlib compression being disabled now that it's
optional. OpenBSD-Regress-ID: 0af4fbc5168e62f89d0350de524bff1cb00e707a
Diffstat (limited to '')
-rw-r--r--regress/putty-transfer.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/regress/putty-transfer.sh b/regress/putty-transfer.sh
index 4928d4533..14b41022f 100644
--- a/regress/putty-transfer.sh
+++ b/regress/putty-transfer.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: putty-transfer.sh,v 1.6 2018/02/23 03:03:00 djm Exp $
+# $OpenBSD: putty-transfer.sh,v 1.7 2020/01/23 11:19:12 dtucker Exp $
# Placed in the Public Domain.
tid="putty transfer data"
@@ -8,7 +8,13 @@ if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then
exit 0
fi
-for c in 0 1 ; do
+if [ "`${SSH} -Q compression`" = "none" ]; then
+ comp="0"
+else
+ comp="0 1"
+fi
+
+for c in $comp; do
verbose "$tid: compression $c"
rm -f ${COPY}
cp ${OBJ}/.putty/sessions/localhost_proxy \