diff options
author | Damien Miller <djm@mindrot.org> | 2006-01-31 12:01:42 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-01-31 12:01:42 +0100 |
commit | 10c5fa7e8766c332b1e04e95fc5d761ee2407214 (patch) | |
tree | 5adb828debac0517c93620b9204f3166eb34c932 /regress/scp.sh | |
parent | - djm@cvs.openbsd.org 2005/05/24 04:10:54 (diff) | |
download | openssh-10c5fa7e8766c332b1e04e95fc5d761ee2407214.tar.xz openssh-10c5fa7e8766c332b1e04e95fc5d761ee2407214.zip |
- markus@cvs.openbsd.org 2005/06/30 11:02:37
[regress/scp.sh]
allow SUDO=sudo; from Alexander Bluhm
Diffstat (limited to '')
-rw-r--r-- | regress/scp.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/scp.sh b/regress/scp.sh index c3034b6e7..1043b8ea2 100644 --- a/regress/scp.sh +++ b/regress/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" @@ -73,7 +73,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 ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy" + $SUDO diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy" $SUDO rm ${DIR2}/copy fi |