summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2016-12-15 23:50:38 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2016-12-15 23:50:38 +0000
commitd7f4afc1928ee311f4c5c95f1639e4d8a6920142 (patch)
treeaa30f63eea3ca00d1409827a27a25e55c9111d8c /regress
parentd7078533cb97165741a663d4223dfbd8d9109f2d (diff)
Use $SUDO to read pidfile in case root's umask is restricted. From
portable.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/ssh/reexec.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/usr.bin/ssh/reexec.sh b/regress/usr.bin/ssh/reexec.sh
index f74c97bdd56..32ca0b820cf 100644
--- a/regress/usr.bin/ssh/reexec.sh
+++ b/regress/usr.bin/ssh/reexec.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: reexec.sh,v 1.8 2015/03/03 22:35:19 markus Exp $
+# $OpenBSD: reexec.sh,v 1.9 2016/12/15 23:50:37 dtucker Exp $
# Placed in the Public Domain.
tid="reexec tests"
@@ -51,7 +51,7 @@ rm -f $SSHD_COPY
copy_tests
-$SUDO kill `cat $PIDFILE`
+$SUDO kill `$SUDO cat $PIDFILE`
rm -f $PIDFILE
verbose "test reexec fallback without privsep"
@@ -64,7 +64,7 @@ rm -f $SSHD_COPY
copy_tests
-$SUDO kill `cat $PIDFILE`
+$SUDO kill `$SUDO cat $PIDFILE`
rm -f $PIDFILE