diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Makefile.in | 4 | ||||
-rw-r--r-- | regress/scp-ssh-wrapper.sh | 6 | ||||
-rw-r--r-- | regress/scp.sh | 1 |
4 files changed, 13 insertions, 3 deletions
@@ -1,3 +1,8 @@ | |||
1 | 20130124 | ||
2 | - (djm) [Makefile.in regress/scp-ssh-wrapper.sh regress/scp.sh] Make | ||
3 | the scp regress test actually test the built scp rather than the one | ||
4 | in $PATH. ok dtucker@ | ||
5 | |||
1 | 20130123 | 6 | 20130123 |
2 | - (tim) [session.c] Improve error reporting on set_id(). | 7 | - (tim) [session.c] Improve error reporting on set_id(). |
3 | - (dtucker) [configure.ac] NetBSD's (and FreeBSD's) strnvis is gratuitously | 8 | - (dtucker) [configure.ac] NetBSD's (and FreeBSD's) strnvis is gratuitously |
diff --git a/Makefile.in b/Makefile.in index f5dd3b834..e3dfab2fa 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: Makefile.in,v 1.350 2014/01/17 05:47:04 djm Exp $ | 1 | # $Id: Makefile.in,v 1.351 2014/01/24 03:27:04 djm Exp $ |
2 | 2 | ||
3 | # uncomment if you run a non bourne compatable shell. Ie. csh | 3 | # uncomment if you run a non bourne compatable shell. Ie. csh |
4 | #SHELL = @SH@ | 4 | #SHELL = @SH@ |
@@ -411,6 +411,7 @@ regress/setuid-allowed$(EXEEXT): $(srcdir)/regress/setuid-allowed.c | |||
411 | tests interop-tests: $(TARGETS) regress/modpipe$(EXEEXT) | 411 | tests interop-tests: $(TARGETS) regress/modpipe$(EXEEXT) |
412 | BUILDDIR=`pwd`; \ | 412 | BUILDDIR=`pwd`; \ |
413 | TEST_SHELL="@TEST_SHELL@"; \ | 413 | TEST_SHELL="@TEST_SHELL@"; \ |
414 | TEST_SSH_SCP="$${BUILDDIR}/scp"; \ | ||
414 | TEST_SSH_SSH="$${BUILDDIR}/ssh"; \ | 415 | TEST_SSH_SSH="$${BUILDDIR}/ssh"; \ |
415 | TEST_SSH_SSHD="$${BUILDDIR}/sshd"; \ | 416 | TEST_SSH_SSHD="$${BUILDDIR}/sshd"; \ |
416 | TEST_SSH_SSHAGENT="$${BUILDDIR}/ssh-agent"; \ | 417 | TEST_SSH_SSHAGENT="$${BUILDDIR}/ssh-agent"; \ |
@@ -434,6 +435,7 @@ tests interop-tests: $(TARGETS) regress/modpipe$(EXEEXT) | |||
434 | PATH="$${BUILDDIR}:$${PATH}" \ | 435 | PATH="$${BUILDDIR}:$${PATH}" \ |
435 | TEST_ENV=MALLOC_OPTIONS="@TEST_MALLOC_OPTIONS@" \ | 436 | TEST_ENV=MALLOC_OPTIONS="@TEST_MALLOC_OPTIONS@" \ |
436 | TEST_SHELL="$${TEST_SHELL}" \ | 437 | TEST_SHELL="$${TEST_SHELL}" \ |
438 | TEST_SSH_SCP="$${TEST_SSH_SCP}" \ | ||
437 | TEST_SSH_SSH="$${TEST_SSH_SSH}" \ | 439 | TEST_SSH_SSH="$${TEST_SSH_SSH}" \ |
438 | TEST_SSH_SSHD="$${TEST_SSH_SSHD}" \ | 440 | TEST_SSH_SSHD="$${TEST_SSH_SSHD}" \ |
439 | TEST_SSH_SSHAGENT="$${TEST_SSH_SSHAGENT}" \ | 441 | TEST_SSH_SSHAGENT="$${TEST_SSH_SSHAGENT}" \ |
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. |
20 | while test "$1" != ""; do | 20 | while test "x$1" != "x"; do |
21 | arg="$1" | 21 | arg="$1" |
22 | shift | 22 | shift |
23 | done | 23 | done |
@@ -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 | ;; |
57 | esac | 59 | esac |
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}` | |||
20 | cp ${SRC}/scp-ssh-wrapper.sh ${OBJ}/scp-ssh-wrapper.scp | 20 | cp ${SRC}/scp-ssh-wrapper.sh ${OBJ}/scp-ssh-wrapper.scp |
21 | chmod 755 ${OBJ}/scp-ssh-wrapper.scp | 21 | chmod 755 ${OBJ}/scp-ssh-wrapper.scp |
22 | scpopts="-q -S ${OBJ}/scp-ssh-wrapper.scp" | 22 | scpopts="-q -S ${OBJ}/scp-ssh-wrapper.scp" |
23 | export SCP # used in scp-ssh-wrapper.scp | ||
23 | 24 | ||
24 | scpclean() { | 25 | scpclean() { |
25 | rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2} | 26 | rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2} |