diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | regress/login-timeout.sh | 2 | ||||
-rw-r--r-- | regress/reconfigure.sh | 2 | ||||
-rw-r--r-- | regress/reexec.sh | 6 | ||||
-rw-r--r-- | regress/test-exec.sh | 2 |
5 files changed, 13 insertions, 6 deletions
@@ -1,3 +1,10 @@ | |||
1 | 20100812 | ||
2 | - (tim) [regress/login-timeout.sh regress/reconfigure.sh regress/reexec.sh | ||
3 | regress/test-exec.sh] Under certain conditions when testing with sudo | ||
4 | tests would fail because the pidfile could not be read by a regular user. | ||
5 | "cat: cannot open ...../regress/pidfile: Permission denied (error 13)" | ||
6 | Make sure cat is run by $SUDO. no objection from me. djm@ | ||
7 | |||
1 | 20100809 | 8 | 20100809 |
2 | - (djm) bz#1561: don't bother setting IFF_UP on tun(4) device if it is | 9 | - (djm) bz#1561: don't bother setting IFF_UP on tun(4) device if it is |
3 | already set. Makes FreeBSD user openable tunnels useful; patch from | 10 | already set. Makes FreeBSD user openable tunnels useful; patch from |
diff --git a/regress/login-timeout.sh b/regress/login-timeout.sh index 15a887f74..55fbb324d 100644 --- a/regress/login-timeout.sh +++ b/regress/login-timeout.sh | |||
@@ -15,7 +15,7 @@ if [ $? -ne 0 ]; then | |||
15 | fail "ssh connect after login grace timeout failed with privsep" | 15 | fail "ssh connect after login grace timeout failed with privsep" |
16 | fi | 16 | fi |
17 | 17 | ||
18 | $SUDO kill `cat $PIDFILE` | 18 | $SUDO kill `$SUDO cat $PIDFILE` |
19 | 19 | ||
20 | trace "test login grace without privsep" | 20 | trace "test login grace without privsep" |
21 | echo "UsePrivilegeSeparation no" >> $OBJ/sshd_config | 21 | echo "UsePrivilegeSeparation no" >> $OBJ/sshd_config |
diff --git a/regress/reconfigure.sh b/regress/reconfigure.sh index 1daf29f9a..9fd289531 100644 --- a/regress/reconfigure.sh +++ b/regress/reconfigure.sh | |||
@@ -15,7 +15,7 @@ esac | |||
15 | 15 | ||
16 | start_sshd | 16 | start_sshd |
17 | 17 | ||
18 | PID=`cat $PIDFILE` | 18 | PID=`$SUDO cat $PIDFILE` |
19 | rm -f $PIDFILE | 19 | rm -f $PIDFILE |
20 | $SUDO kill -HUP $PID | 20 | $SUDO kill -HUP $PID |
21 | 21 | ||
diff --git a/regress/reexec.sh b/regress/reexec.sh index 4f824a31d..6edfc318e 100644 --- a/regress/reexec.sh +++ b/regress/reexec.sh | |||
@@ -41,7 +41,7 @@ echo "InvalidXXX=no" >> $OBJ/sshd_config | |||
41 | 41 | ||
42 | copy_tests | 42 | copy_tests |
43 | 43 | ||
44 | $SUDO kill `cat $PIDFILE` | 44 | $SUDO kill `$SUDO cat $PIDFILE` |
45 | rm -f $PIDFILE | 45 | rm -f $PIDFILE |
46 | 46 | ||
47 | cp $OBJ/sshd_config.orig $OBJ/sshd_config | 47 | cp $OBJ/sshd_config.orig $OBJ/sshd_config |
@@ -53,7 +53,7 @@ rm -f $SSHD_COPY | |||
53 | 53 | ||
54 | copy_tests | 54 | copy_tests |
55 | 55 | ||
56 | $SUDO kill `cat $PIDFILE` | 56 | $SUDO kill `$SUDO cat $PIDFILE` |
57 | rm -f $PIDFILE | 57 | rm -f $PIDFILE |
58 | 58 | ||
59 | verbose "test reexec fallback without privsep" | 59 | verbose "test reexec fallback without privsep" |
@@ -66,7 +66,7 @@ rm -f $SSHD_COPY | |||
66 | 66 | ||
67 | copy_tests | 67 | copy_tests |
68 | 68 | ||
69 | $SUDO kill `cat $PIDFILE` | 69 | $SUDO kill `$SUDO cat $PIDFILE` |
70 | rm -f $PIDFILE | 70 | rm -f $PIDFILE |
71 | 71 | ||
72 | 72 | ||
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() | |||
167 | cleanup () | 167 | cleanup () |
168 | { | 168 | { |
169 | if [ -f $PIDFILE ]; then | 169 | if [ -f $PIDFILE ]; then |
170 | pid=`cat $PIDFILE` | 170 | pid=`$SUDO cat $PIDFILE` |
171 | if [ "X$pid" = "X" ]; then | 171 | if [ "X$pid" = "X" ]; then |
172 | echo no sshd running | 172 | echo no sshd running |
173 | else | 173 | else |