From e0c3b22e6c5c04ae86f0a59cb27f1540375a0423 Mon Sep 17 00:00:00 2001 From: dtucker Date: Thu, 10 Jun 2021 09:43:51 +0000 Subject: [PATCH] Use $SUDO when reading sshd's pidfile in case it was created with a very restrictive umask. This resyncs with -portable. --- regress/usr.bin/ssh/reconfigure.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/usr.bin/ssh/reconfigure.sh b/regress/usr.bin/ssh/reconfigure.sh index fb367cc6805..4f288cd0085 100644 --- a/regress/usr.bin/ssh/reconfigure.sh +++ b/regress/usr.bin/ssh/reconfigure.sh @@ -1,4 +1,4 @@ -# $OpenBSD: reconfigure.sh,v 1.7 2021/06/10 03:45:31 dtucker Exp $ +# $OpenBSD: reconfigure.sh,v 1.8 2021/06/10 09:43:51 dtucker Exp $ # Placed in the Public Domain. tid="simple connect after reconfigure" @@ -12,7 +12,7 @@ if [ $? -ne 0 ]; then fail "ssh connect with failed before reconfigure" fi -PID=`cat $PIDFILE` +PID=`$SUDO cat $PIDFILE` rm -f $PIDFILE $SUDO kill -HUP $PID -- 2.20.1