]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Use $SUDO when reading sshd's pidfile here too.
authordtucker@openbsd.org <dtucker@openbsd.org>
Thu, 10 Jun 2021 09:46:28 +0000 (09:46 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 10 Jun 2021 10:15:20 +0000 (20:15 +1000)
OpenBSD-Regress-ID: 6bfb0d455d493f24839034a629c5306f84dbd409

regress/reconfigure.sh

index 5cb3e3898293c06477eb857b2b9d45dbd660dc08..d5b4e9808fcc6d606ca09fa52058586ee91ad3c9 100644 (file)
@@ -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"
@@ -45,7 +45,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