diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2005-06-30 11:02:38 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2005-06-30 11:02:38 +0000 |
commit | d2c6d77e3fa3a9019e03a34cfa5c81cef1d1c50a (patch) | |
tree | 5a740cdb32ca2b6a0a0382eb6406835464131970 /regress | |
parent | 5a45a781bd13284b1ac716941a933450bc3cf452 (diff) |
allow SUDO=sudo; from Alexander Bluhm
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/ssh/scp.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |