From 722b8d14f17f6471ef9b746f8b5942e1c7940d32 Mon Sep 17 00:00:00 2001 From: Tim Rice Date: Thu, 12 Aug 2010 09:43:13 -0700 Subject: - (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@ --- regress/test-exec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regress/test-exec.sh') diff --git a/regress/test-exec.sh b/regress/test-exec.sh index b3a19389d..b64dcdbcf 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -167,7 +167,7 @@ have_prog() cleanup () { if [ -f $PIDFILE ]; then - pid=`cat $PIDFILE` + pid=`$SUDO cat $PIDFILE` if [ "X$pid" = "X" ]; then echo no sshd running else -- cgit v1.2.3