]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
prefer ln to cp for temporary copy of sshd
authorDamien Miller <djm@mindrot.org>
Thu, 14 May 2020 02:22:09 +0000 (12:22 +1000)
committerDamien Miller <djm@mindrot.org>
Thu, 14 May 2020 02:24:24 +0000 (12:24 +1000)
commit3ab6fccc3935e9b778ff52f9c8d40f215d58e01d
tree826ffb5725865c2d948d77b5ac948f9951ed3673
parentf700d316c6b15a9cfbe87230d2dca81a5d916279
prefer ln to cp for temporary copy of sshd

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.
regress/reexec.sh