From: dtucker@openbsd.org Date: Fri, 28 Mar 2025 05:33:30 +0000 (+0000) Subject: upstream: chown log directory in addition to log files. X-Git-Tag: V_10_0_P1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cd9ed4df0eccc825eca0c45354a37332e125e38;p=thirdparty%2Fopenssh-portable.git upstream: chown log directory in addition to log files. OpenBSD-Regress-ID: b520d54a0bbf2c6554413c798218bda26b385ad9 --- diff --git a/regress/test-exec.sh b/regress/test-exec.sh index b58fcb8f1..096933c4a 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -1,4 +1,4 @@ -# $OpenBSD: test-exec.sh,v 1.124 2025/03/11 07:46:02 dtucker Exp $ +# $OpenBSD: test-exec.sh,v 1.125 2025/03/28 05:33:30 dtucker Exp $ # Placed in the Public Domain. #SUDO=sudo @@ -531,7 +531,7 @@ save_debug_log () for logfile in $TEST_SSH_LOGDIR $TEST_REGRESS_LOGFILE \ $TEST_SSH_LOGFILE $TEST_SSHD_LOGFILE; do - if [ ! -z "$SUDO" ] && [ -f "$logfile" ]; then + if [ ! -z "$SUDO" ] && [ -e "$logfile" ]; then $SUDO chown -R $USER $logfile fi done