[openssh-commits] [openssh] 01/03: upstream: Always create logfiles. Should prevent "can't operate on

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Oct 21 19:36:40 AEDT 2025


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 8704c141bf6ded67ab466f5e987c49329ebbd968
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Tue Oct 21 07:18:27 2025 +0000

    upstream: Always create logfiles. Should prevent "can't operate on
    
    symlink" warnings during test runs.
    
    OpenBSD-Regress-ID: 65cf5ce3c8b87b5609f1f3ea142b4f381128dc33
---
 regress/test-exec.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list