summaryrefslogtreecommitdiff
path: root/regress/usr.bin/ssh/reexec.sh
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2004-06-25 01:25:13 +0000
committerDamien Miller <djm@cvs.openbsd.org>2004-06-25 01:25:13 +0000
commit65511527b55de837b14f18a451a69cef05f84f23 (patch)
treeef2152d66f894101fbb8f7f7e15c889c1c5f458c /regress/usr.bin/ssh/reexec.sh
parenteaa0a0397cf98d29d225383ce8eca93bd0893d45 (diff)
clean reexec-specific junk out of text-exec.sh and simplify; idea markus@
Diffstat (limited to 'regress/usr.bin/ssh/reexec.sh')
-rw-r--r--regress/usr.bin/ssh/reexec.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/reexec.sh b/regress/usr.bin/ssh/reexec.sh
index c5ee58b26ff..f036ac7f303 100644
--- a/regress/usr.bin/ssh/reexec.sh
+++ b/regress/usr.bin/ssh/reexec.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: reexec.sh,v 1.1 2004/06/24 19:32:00 djm Exp $
+# $OpenBSD: reexec.sh,v 1.2 2004/06/25 01:25:11 djm Exp $
# Placed in the Public Domain.
tid="reexec tests"
@@ -6,6 +6,17 @@ tid="reexec tests"
DATA=/bin/ls
COPY=${OBJ}/copy
+# Start a sshd and then delete it
+start_sshd_copy_zap ()
+{
+ cp ${SSHD} $OBJ/sshd.copy
+ SSHD_ORIG=$SSHD
+ SSHD=`which $OBJ/sshd.copy`
+ start_sshd
+ rm -f $SSHD
+ SSHD=$SSHD_ORIG
+}
+
verbose "test config passing"
cp $OBJ/sshd_config $OBJ/sshd_config.orig