From 1b05d5437bf45bee5e3104772dea06ed51764f1b Mon Sep 17 00:00:00 2001 From: "dtucker@openbsd.org" Date: Tue, 22 Oct 2024 07:13:28 +0000 Subject: [PATCH] upstream: Remove sshd logfile in start_sshd ... and ssh and sshd log wrappers before recreating them. Prevents "can't create" errors during tests when running tests without SUDO after having run them with SUDO. OpenBSD-Regress-ID: 2f0a83532e3dccd673a9bf0291090277268c69a6 --- regress/test-exec.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 7a078edf6..307f002e6 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -1,4 +1,4 @@ -# $OpenBSD: test-exec.sh,v 1.120 2024/10/14 03:02:08 djm Exp $ +# $OpenBSD: test-exec.sh,v 1.121 2024/10/22 07:13:28 dtucker Exp $ # Placed in the Public Domain. #SUDO=sudo @@ -309,6 +309,7 @@ fi # to preserve our debug logging. In the rare instance where -q is desirable # -qq is equivalent and is not removed. SSHLOGWRAP=$OBJ/ssh-log-wrapper.sh +rm -f ${SSHLOGWRAP} cat >$SSHLOGWRAP <$SSHDLOGWRAP <