Skip to content

Commit 8cd9ed4

Browse files
committed
upstream: chown log directory in addition to log files.
OpenBSD-Regress-ID: b520d54a0bbf2c6554413c798218bda26b385ad9
1 parent e32de6b commit 8cd9ed4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regress/test-exec.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $OpenBSD: test-exec.sh,v 1.124 2025/03/11 07:46:02 dtucker Exp $
1+
# $OpenBSD: test-exec.sh,v 1.125 2025/03/28 05:33:30 dtucker Exp $
22
# Placed in the Public Domain.
33

44
#SUDO=sudo
@@ -531,7 +531,7 @@ save_debug_log ()
531531

532532
for logfile in $TEST_SSH_LOGDIR $TEST_REGRESS_LOGFILE \
533533
$TEST_SSH_LOGFILE $TEST_SSHD_LOGFILE; do
534-
if [ ! -z "$SUDO" ] && [ -f "$logfile" ]; then
534+
if [ ! -z "$SUDO" ] && [ -e "$logfile" ]; then
535535
$SUDO chown -R $USER $logfile
536536
fi
537537
done

0 commit comments

Comments
 (0)