diff options
author | Colin Watson <cjwatson@debian.org> | 2004-03-01 02:25:32 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2004-03-01 02:25:32 +0000 |
commit | ea8116a11e3de70036dbc665ccb0d486cf89cac9 (patch) | |
tree | d73ccdff78d8608e156465af42e6a1b3527fb2d6 /regress/agent-ptrace.sh | |
parent | e39b311381a5609cc05acf298c42fba196dc524b (diff) | |
parent | f5bda272678ec6dccaa5f29379cf60cb855018e8 (diff) |
Merge 3.8p1 to the trunk. This builds and runs, but I haven't tested it
extensively yet.
ProtocolKeepAlives is now just a compatibility alias for
ServerAliveInterval.
Diffstat (limited to 'regress/agent-ptrace.sh')
-rw-r--r-- | regress/agent-ptrace.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/regress/agent-ptrace.sh b/regress/agent-ptrace.sh index cd9c0023d..bd79d7cb8 100644 --- a/regress/agent-ptrace.sh +++ b/regress/agent-ptrace.sh | |||
@@ -5,7 +5,7 @@ tid="disallow agent ptrace attach" | |||
5 | 5 | ||
6 | if have_prog uname ; then | 6 | if have_prog uname ; then |
7 | case `uname` in | 7 | case `uname` in |
8 | Linux|HP-UX|SunOS|NetBSD|AIX|CYGWIN*) | 8 | AIX|CYGWIN*) |
9 | echo "skipped (not supported on this platform)" | 9 | echo "skipped (not supported on this platform)" |
10 | exit 0 | 10 | exit 0 |
11 | ;; | 11 | ;; |
@@ -19,6 +19,15 @@ else | |||
19 | exit 0 | 19 | exit 0 |
20 | fi | 20 | fi |
21 | 21 | ||
22 | if test -z "$SUDO" ; then | ||
23 | echo "skipped (SUDO not set)" | ||
24 | exit 0 | ||
25 | else | ||
26 | $SUDO chown 0 ${SSHAGENT} | ||
27 | $SUDO chgrp 0 ${SSHAGENT} | ||
28 | $SUDO chmod 2755 ${SSHAGENT} | ||
29 | fi | ||
30 | |||
22 | trace "start agent" | 31 | trace "start agent" |
23 | eval `${SSHAGENT} -s` > /dev/null | 32 | eval `${SSHAGENT} -s` > /dev/null |
24 | r=$? | 33 | r=$? |
@@ -32,7 +41,7 @@ EOF | |||
32 | if [ $? -ne 0 ]; then | 41 | if [ $? -ne 0 ]; then |
33 | fail "gdb failed: exit code $?" | 42 | fail "gdb failed: exit code $?" |
34 | fi | 43 | fi |
35 | grep 'ptrace: Operation not permitted.' >/dev/null ${OBJ}/gdb.out | 44 | egrep 'ptrace: Operation not permitted.|procfs:.*Permission denied.|ttrace attach: Permission denied.' >/dev/null ${OBJ}/gdb.out |
36 | r=$? | 45 | r=$? |
37 | rm -f ${OBJ}/gdb.out | 46 | rm -f ${OBJ}/gdb.out |
38 | if [ $r -ne 0 ]; then | 47 | if [ $r -ne 0 ]; then |