From d2c6d77e3fa3a9019e03a34cfa5c81cef1d1c50a Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Thu, 30 Jun 2005 11:02:38 +0000 Subject: allow SUDO=sudo; from Alexander Bluhm --- regress/usr.bin/ssh/scp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regress') diff --git a/regress/usr.bin/ssh/scp.sh b/regress/usr.bin/ssh/scp.sh index 0ef2d626d66..6001f6fc8de 100644 --- a/regress/usr.bin/ssh/scp.sh +++ b/regress/usr.bin/ssh/scp.sh @@ -1,4 +1,4 @@ -# $OpenBSD: scp.sh,v 1.3 2004/07/08 12:59:35 dtucker Exp $ +# $OpenBSD: scp.sh,v 1.4 2005/06/30 11:02:37 markus Exp $ # Placed in the Public Domain. tid="scp" @@ -66,7 +66,7 @@ if [ ! -z "$SUDO" ]; then chmod 660 ${DIR2}/copy $SUDO chown root ${DIR2}/copy $SCP -p $scpopts somehost:${DIR}/\* ${DIR2} >/dev/null 2>&1 - diff -rN ${DIR} ${DIR2} || fail "corrupted copy" + $SUDO diff -rN ${DIR} ${DIR2} || fail "corrupted copy" $SUDO rm ${DIR2}/copy fi -- cgit v1.2.3