]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Check if we can copy sshd or need to use sudo to do so
authordtucker@openbsd.org <dtucker@openbsd.org>
Thu, 19 Jan 2023 07:53:45 +0000 (07:53 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 2 Feb 2023 12:15:47 +0000 (23:15 +1100)
during reexec test. Skip test if neither can work.  Patch from anton@, tweaks
from me.

OpenBSD-Regress-ID: 731b96ae74d02d5744e1f1a8e51d09877ffd9b6d

regress/reexec.sh

index 8966ba524e6004154835d97c6033f77e1672b568..3f88d41f534c7897a54b2e14fdf49cea0afe6bbe 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: reexec.sh,v 1.12 2017/08/07 03:52:55 dtucker Exp $
+#      $OpenBSD: reexec.sh,v 1.13 2023/01/19 07:53:45 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="reexec tests"
@@ -49,7 +49,7 @@ if [ "$os" != "cygwin" ]; then
 verbose "test reexec fallback"
 
 start_sshd_copy
-rm -f $SSHD_COPY
+$SUDO rm -f $SSHD_COPY
 
 copy_tests