summaryrefslogtreecommitdiff
path: root/regress/reexec.sh
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2010-08-12 09:43:13 -0700
committerTim Rice <tim@multitalents.net>2010-08-12 09:43:13 -0700
commit722b8d14f17f6471ef9b746f8b5942e1c7940d32 (patch)
treed4bb5f81688510e3478e2a0ba21db1c5d0ceccc6 /regress/reexec.sh
parent02c47341a2d0bd03411f6e00c74fb7ddd9b03986 (diff)
- (tim) [regress/login-timeout.sh regress/reconfigure.sh regress/reexec.sh
regress/test-exec.sh] Under certain conditions when testing with sudo tests would fail because the pidfile could not be read by a regular user. "cat: cannot open ...../regress/pidfile: Permission denied (error 13)" Make sure cat is run by $SUDO. no objection from me. djm@
Diffstat (limited to 'regress/reexec.sh')
-rw-r--r--regress/reexec.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/reexec.sh b/regress/reexec.sh
index 4f824a31..6edfc318 100644
--- a/regress/reexec.sh
+++ b/regress/reexec.sh
@@ -41,7 +41,7 @@ echo "InvalidXXX=no" >> $OBJ/sshd_config
copy_tests
-$SUDO kill `cat $PIDFILE`
+$SUDO kill `$SUDO cat $PIDFILE`
rm -f $PIDFILE
cp $OBJ/sshd_config.orig $OBJ/sshd_config
@@ -53,7 +53,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"
@@ -66,7 +66,7 @@ rm -f $SSHD_COPY
copy_tests
-$SUDO kill `cat $PIDFILE`
+$SUDO kill `$SUDO cat $PIDFILE`
rm -f $PIDFILE