summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/scp-ssh-wrapper.sh6
-rw-r--r--regress/scp.sh1
2 files changed, 5 insertions, 2 deletions
diff --git a/regress/scp-ssh-wrapper.sh b/regress/scp-ssh-wrapper.sh
index d1005a995..c63bc2bc1 100644
--- a/regress/scp-ssh-wrapper.sh
+++ b/regress/scp-ssh-wrapper.sh
@@ -17,7 +17,7 @@ printname () {
17} 17}
18 18
19# Discard all but last argument. We use arg later. 19# Discard all but last argument. We use arg later.
20while test "$1" != ""; do 20while test "x$1" != "x"; do
21 arg="$1" 21 arg="$1"
22 shift 22 shift
23done 23done
@@ -52,6 +52,8 @@ badserver_4)
52 echo "X" 52 echo "X"
53 ;; 53 ;;
54*) 54*)
55 exec $arg 55 set -- $arg
56 shift
57 exec $SCP "$@"
56 ;; 58 ;;
57esac 59esac
diff --git a/regress/scp.sh b/regress/scp.sh
index 29c5b35d4..c2da2a862 100644
--- a/regress/scp.sh
+++ b/regress/scp.sh
@@ -20,6 +20,7 @@ SRC=`dirname ${SCRIPT}`
20cp ${SRC}/scp-ssh-wrapper.sh ${OBJ}/scp-ssh-wrapper.scp 20cp ${SRC}/scp-ssh-wrapper.sh ${OBJ}/scp-ssh-wrapper.scp
21chmod 755 ${OBJ}/scp-ssh-wrapper.scp 21chmod 755 ${OBJ}/scp-ssh-wrapper.scp
22scpopts="-q -S ${OBJ}/scp-ssh-wrapper.scp" 22scpopts="-q -S ${OBJ}/scp-ssh-wrapper.scp"
23export SCP # used in scp-ssh-wrapper.scp
23 24
24scpclean() { 25scpclean() {
25 rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2} 26 rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2}