summaryrefslogtreecommitdiff
path: root/regress/reexec.sh
Commit message (Collapse)AuthorAgeFilesLines
* upstream: Check if we can copy sshd or need to use sudo to do sodtucker@openbsd.org2023-02-021-2/+2
| | | | | | | during reexec test. Skip test if neither can work. Patch from anton@, tweaks from me. OpenBSD-Regress-ID: 731b96ae74d02d5744e1f1a8e51d09877ffd9b6d
* prefer ln to cp for temporary copy of sshdDamien Miller2020-05-141-1/+4
| | | | | | I saw failures on the reexec fallback test on Darwin 19.4 where fork()ed children of a process that had it's executable removed would instantly fail. Using ln to preserve the inode avoids this.
* upstream commitdtucker@openbsd.org2017-09-181-14/+1
| | | | | | Remove obsolete privsep=no fallback test. Upstream-Regress-ID: 7d6e1baa1678ac6be50c2a1555662eb1047638df
* upstream commitdjm@openbsd.org2017-05-011-11/+8
| | | | | | | eliminate explicit specification of protocol in tests and loops over protocol. We only support SSHv2 now. Upstream-Regress-ID: 0082838a9b8a382b7ee9cbf0c1b9db727784fadd
* upstream commitdtucker@openbsd.org2016-12-161-7/+4
| | | | | | | Move the "stop sshd" code into its own helper function. Patch from Zev Weiss <zev at bewilderbeest.net>, ok djm@ Upstream-Regress-ID: a113dea77df5bd97fb4633ea31f3d72dbe356329
* upstream commitdtucker@openbsd.org2016-12-161-1/+1
| | | | | | | Use $SUDO to read pidfile in case root's umask is restricted. From portable. Upstream-Regress-ID: f6b1c7ffbc5a0dfb7d430adb2883344899174a98
* upstream commitmarkus@openbsd.org2015-03-051-2/+2
| | | | make it possible to run tests w/o ssh1 support; ok djm@
* - dtucker@cvs.openbsd.org 2013/05/17 10:23:52Darren Tucker2013-05-171-1/+1
| | | | | | | [regress/login-timeout.sh regress/reexec.sh regress/test-exec.sh] Use SUDO when cat'ing pid files and running the sshd log wrapper so that it works with a restrictive umask and the pid files are not world readable. Changes from -portable. (id sync only)
* - dtucker@cvs.openbsd.org 2013/05/17 04:29:14Darren Tucker2013-05-171-5/+3
| | | | | | | | | | | | [regress/sftp.sh regress/putty-ciphers.sh regress/cipher-speed.sh regress/test-exec.sh regress/sftp-batch.sh regress/dynamic-forward.sh regress/putty-transfer.sh regress/conch-ciphers.sh regress/sftp-cmds.sh regress/scp.sh regress/ssh-com-sftp.sh regress/rekey.sh regress/putty-kex.sh regress/stderr-data.sh regress/stderr-after-eof.sh regress/sftp-badcmds.sh regress/reexec.sh regress/ssh-com-client.sh regress/sftp-chroot.sh regress/forwarding.sh regress/transfer.sh regress/multiplex.sh] Move the setting of DATA and COPY into test-exec.sh
* - (dtucker) [regress/reexec.sh regress/sftp-cmds.sh regress/test-exec.sh]Darren Tucker2012-07-031-1/+4
| | | | Move cygwin detection to test-exec and use to skip reexec test on cygwin.
* - (tim) [regress/login-timeout.sh regress/reconfigure.sh regress/reexec.shTim Rice2010-08-121-3/+3
| | | | | | | regress/test-exec.sh] Under certain conditions when testing with sudo tests would fail because the pidfile could not be read by a regular user. "cat: cannot open ...../regress/pidfile: Permission denied (error 13)" Make sure cat is run by $SUDO. no objection from me. djm@
* - (dtucker) [regress/reexec.sh] Add ${EXEEXT} so this test also works onDarren Tucker2005-05-261-3/+3
| | | | Cygwin.
* - djm@cvs.openbsd.org 2004/10/08 02:01:50Darren Tucker2004-12-061-43/+28
| | | | | [reexec.sh] shrink and tidy; ok dtucker@
* - djm@cvs.openbsd.org 2004/06/26 06:16:07Darren Tucker2004-12-061-2/+2
| | | | | | [reexec.sh] don't change the name of the copied sshd for the reexec fallback test, makes life simpler for portable
* - djm@cvs.openbsd.org 2004/06/24 19:32:00Darren Tucker2004-06-251-0/+87
[regress/Makefile regress/test-exec.sh, added regress/reexec.sh] regress test for re-exec corner cases