[regress/scp.sh]
     allow SUDO=sudo; from Alexander Bluhm
This commit is contained in:
Damien Miller 2006-01-31 22:01:42 +11:00
parent ec7b2f12f0
commit 10c5fa7e87
2 changed files with 7 additions and 4 deletions

View File

@ -47,8 +47,11 @@
force addressfamily=inet for tests, unbreaking dynamic-forward regress for force addressfamily=inet for tests, unbreaking dynamic-forward regress for
recently committed nc SOCKS5 changes recently committed nc SOCKS5 changes
- djm@cvs.openbsd.org 2005/05/24 04:10:54 - djm@cvs.openbsd.org 2005/05/24 04:10:54
[try-ciphers.sh] [regress/try-ciphers.sh]
oops, new arcfour modes here too oops, new arcfour modes here too
- markus@cvs.openbsd.org 2005/06/30 11:02:37
[regress/scp.sh]
allow SUDO=sudo; from Alexander Bluhm
20060129 20060129
- (dtucker) [configure.ac opensshd.init.in] Bug #1144: Use /bin/sh for the - (dtucker) [configure.ac opensshd.init.in] Bug #1144: Use /bin/sh for the
@ -3774,4 +3777,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.4105 2006/01/31 10:59:35 djm Exp $ $Id: ChangeLog,v 1.4106 2006/01/31 11:01:42 djm Exp $

View File

@ -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. # Placed in the Public Domain.
tid="scp" tid="scp"
@ -73,7 +73,7 @@ if [ ! -z "$SUDO" ]; then
chmod 660 ${DIR2}/copy chmod 660 ${DIR2}/copy
$SUDO chown root ${DIR2}/copy $SUDO chown root ${DIR2}/copy
$SCP -p $scpopts somehost:${DIR}/\* ${DIR2} >/dev/null 2>&1 $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 $SUDO rm ${DIR2}/copy
fi fi