From 2141bc2606fe1f270f782d6ba8730f7d2aa4159c Mon Sep 17 00:00:00 2001 From: dtucker Date: Tue, 22 Oct 2024 07:13:28 +0000 Subject: [PATCH] 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. --- regress/usr.bin/ssh/test-exec.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/regress/usr.bin/ssh/test-exec.sh b/regress/usr.bin/ssh/test-exec.sh index f05ff8c4ab2..9e3dd265748 100644 --- a/regress/usr.bin/ssh/test-exec.sh +++ b/regress/usr.bin/ssh/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 @@ -204,6 +204,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 <