[PATCH] Use $SUDO for reconfigure.sh regression test.
Darren Tucker
dtucker at zip.com.au
Sat Jun 21 14:02:46 EST 2003
Hi.
I just noticed that the new reconfigure regression test does not work
properly (the test passes but it doesn't actually test anything) when
SUDO=sudo is used, because the kill -HUP is run as a normal user. This is
fixed in the attached patch.
-Daz.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
-------------- next part --------------
Index: reconfigure.sh
===================================================================
RCS file: /cvs/src/regress/usr.bin/ssh/reconfigure.sh,v
retrieving revision 1.1
diff -u -r1.1 reconfigure.sh
--- reconfigure.sh 12 Jun 2003 15:43:32 -0000 1.1
+++ reconfigure.sh 21 Jun 2003 03:58:13 -0000
@@ -8,7 +8,7 @@
start_sshd
-kill -HUP `cat $PIDFILE`
+$SUDO kill -HUP `cat $PIDFILE`
sleep 1
trace "wait for sshd to restart"
More information about the openssh-unix-dev
mailing list