From: dtucker Date: Thu, 10 Jun 2021 09:46:28 +0000 (+0000) Subject: Use $SUDO when reading sshd's pidfile here too. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b3ff80401b21afc9776bb18951b36d180d5481ff;p=openbsd Use $SUDO when reading sshd's pidfile here too. --- diff --git a/regress/usr.bin/ssh/reconfigure.sh b/regress/usr.bin/ssh/reconfigure.sh index 4f288cd0085..dcf4fbc9196 100644 --- a/regress/usr.bin/ssh/reconfigure.sh +++ b/regress/usr.bin/ssh/reconfigure.sh @@ -1,4 +1,4 @@ -# $OpenBSD: reconfigure.sh,v 1.8 2021/06/10 09:43:51 dtucker Exp $ +# $OpenBSD: reconfigure.sh,v 1.9 2021/06/10 09:46:28 dtucker Exp $ # Placed in the Public Domain. tid="simple connect after reconfigure" @@ -34,7 +34,7 @@ fi trace "reconfigure with active clients" ${SSH} -F $OBJ/ssh_config somehost sleep 10 # authenticated client ${NC} -d 127.0.0.1 $PORT >/dev/null & # unauthenticated client -PID=`cat $PIDFILE` +PID=`$SUDO cat $PIDFILE` rm -f $PIDFILE $SUDO kill -HUP $PID