Skip to content

Commit 405fba7

Browse files
daztuckerdjmdjm
authored andcommitted
upstream: Check if we can copy sshd or need to use sudo to do so
during reexec test. Skip test if neither can work. Patch from anton@, tweaks from me. OpenBSD-Regress-ID: 731b96ae74d02d5744e1f1a8e51d09877ffd9b6d
1 parent b2a2a8f commit 405fba7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regress/reexec.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $OpenBSD: reexec.sh,v 1.12 2017/08/07 03:52:55 dtucker Exp $
1+
# $OpenBSD: reexec.sh,v 1.13 2023/01/19 07:53:45 dtucker Exp $
22
# Placed in the Public Domain.
33

44
tid="reexec tests"
@@ -49,7 +49,7 @@ if [ "$os" != "cygwin" ]; then
4949
verbose "test reexec fallback"
5050

5151
start_sshd_copy
52-
rm -f $SSHD_COPY
52+
$SUDO rm -f $SSHD_COPY
5353

5454
copy_tests
5555

0 commit comments

Comments
 (0)