From: dtucker@openbsd.org Date: Tue, 21 Oct 2025 07:18:27 +0000 (+0000) Subject: upstream: Always create logfiles. Should prevent "can't operate on X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8704c141bf6ded67ab466f5e987c49329ebbd968;p=thirdparty%2Fopenssh-portable.git upstream: Always create logfiles. Should prevent "can't operate on symlink" warnings during test runs. OpenBSD-Regress-ID: 65cf5ce3c8b87b5609f1f3ea142b4f381128dc33 --- diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 377c72640..5b0c91f3f 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -1,4 +1,4 @@ -# $OpenBSD: test-exec.sh,v 1.132 2025/10/16 00:01:54 djm Exp $ +# $OpenBSD: test-exec.sh,v 1.133 2025/10/21 07:18:27 dtucker Exp $ # Placed in the Public Domain. #SUDO=sudo @@ -534,11 +534,12 @@ save_debug_log () for logfile in $TEST_SSH_LOGDIR $TEST_REGRESS_LOGFILE \ $TEST_SSH_LOGFILE $TEST_SSHD_LOGFILE; do - if [ ! -z "$SUDO" ] && [ -e "$logfile" ]; then + if [ ! -z "$SUDO" ]; then + touch $logfile $SUDO chown -R $USER $logfile + $SUDO chmod ug+rw $logfile fi done - test -z "$SUDO" || $SUDO chmod ug+rw $TEST_SSHD_LOGFILE echo $@ >>$TEST_REGRESS_LOGFILE echo $@ >>$TEST_SSH_LOGFILE echo $@ >>$TEST_SSHD_LOGFILE