1 # $OpenBSD: reexec.sh,v 1.10 2016/12/16 01:06:27 dtucker Exp $
2 # Placed in the Public Domain.
9 # Start a sshd and then delete it
12 cp $SSHD_ORIG $SSHD_COPY
22 for p in ${SSH_PROTOCOLS} ; do
23 verbose "$tid: proto $p"
24 ${SSH} -nqo "Protocol=$p" -F $OBJ/ssh_config somehost \
27 fail "ssh cat $DATA failed"
29 cmp ${DATA} ${COPY} || fail "corrupted copy"
34 verbose "test config passing"
36 cp $OBJ/sshd_config $OBJ/sshd_config.orig
38 echo "InvalidXXX=no" >> $OBJ/sshd_config
44 cp $OBJ/sshd_config.orig $OBJ/sshd_config
46 # cygwin can't fork a deleted binary
47 if [ "$os" != "cygwin" ]; then
49 verbose "test reexec fallback"
58 verbose "test reexec fallback without privsep"
60 cp $OBJ/sshd_config.orig $OBJ/sshd_config
61 echo "UsePrivilegeSeparation=no" >> $OBJ/sshd_config