1 # $OpenBSD: reexec.sh,v 1.12 2017/08/07 03:52:55 dtucker Exp $
2 # Placed in the Public Domain.
9 # Start a sshd and then delete it
12 cp $SSHD_ORIG $SSHD_COPY
22 ${SSH} -nq -F $OBJ/ssh_config somehost \
25 fail "ssh cat $DATA failed"
27 cmp ${DATA} ${COPY} || fail "corrupted copy"
31 verbose "test config passing"
33 cp $OBJ/sshd_config $OBJ/sshd_config.orig
35 echo "InvalidXXX=no" >> $OBJ/sshd_config
41 cp $OBJ/sshd_config.orig $OBJ/sshd_config
43 # cygwin can't fork a deleted binary
44 if [ "$os" != "cygwin" ]; then
46 verbose "test reexec fallback"