diff options
author | Colin Watson <cjwatson@debian.org> | 2020-06-07 10:19:23 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-06-07 10:19:23 +0100 |
commit | 202f5a676221c244cd450086c334c2b59f339e86 (patch) | |
tree | d2f90a3a9ce2b33485c271eab01a48f02ef6fb5a /regress/reexec.sh | |
parent | f0de78bd4f29fa688c5df116f3f9cd43543a76d0 (diff) | |
parent | 9ca7e9c861775dd6c6312bc8aaab687403d24676 (diff) |
Import openssh_8.3p1.orig.tar.gz
Diffstat (limited to 'regress/reexec.sh')
-rw-r--r-- | regress/reexec.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/regress/reexec.sh b/regress/reexec.sh index 2192456cd..8966ba524 100644 --- a/regress/reexec.sh +++ b/regress/reexec.sh | |||
@@ -9,7 +9,10 @@ SSHD_COPY=$OBJ/sshd | |||
9 | # Start a sshd and then delete it | 9 | # Start a sshd and then delete it |
10 | start_sshd_copy () | 10 | start_sshd_copy () |
11 | { | 11 | { |
12 | cp $SSHD_ORIG $SSHD_COPY | 12 | # NB. prefer ln to cp here. On some OSX 19.4 configurations, |
13 | # djm has seen failure after fork() when the executable image | ||
14 | # has been removed from the filesystem. | ||
15 | ln $SSHD_ORIG $SSHD_COPY || cp $SSHD_ORIG $SSHD_COPY | ||
13 | SSHD=$SSHD_COPY | 16 | SSHD=$SSHD_COPY |
14 | start_sshd | 17 | start_sshd |
15 | SSHD=$SSHD_ORIG | 18 | SSHD=$SSHD_ORIG |