From: dtucker Date: Thu, 10 Jun 2021 09:43:51 +0000 (+0000) Subject: Use $SUDO when reading sshd's pidfile in case it was created with a very X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e0c3b22e6c5c04ae86f0a59cb27f1540375a0423;p=openbsd Use $SUDO when reading sshd's pidfile in case it was created with a very restrictive umask. This resyncs with -portable. --- 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