]> andersk Git - gssapi-openssh.git/blobdiff - openssh/regress/agent-ptrace.sh
Re-import of OpenSSH 3.7.1p2 (Chase\!)
[gssapi-openssh.git] / openssh / regress / agent-ptrace.sh
index bd79d7cb80f560eafc5051a58ee32348314f2ebe..cd9c0023da1f84cb6eb8b892a5fca0fd2d1fc003 100644 (file)
@@ -5,7 +5,7 @@ tid="disallow agent ptrace attach"
 
 if have_prog uname ; then
        case `uname` in
-       AIX|CYGWIN*)
+       Linux|HP-UX|SunOS|NetBSD|AIX|CYGWIN*)
                echo "skipped (not supported on this platform)"
                exit 0
                ;;
@@ -19,15 +19,6 @@ else
        exit 0
 fi
 
-if test -z "$SUDO" ; then
-       echo "skipped (SUDO not set)"
-       exit 0
-else
-       $SUDO chown 0 ${SSHAGENT}
-       $SUDO chgrp 0 ${SSHAGENT}
-       $SUDO chmod 2755 ${SSHAGENT}
-fi
-
 trace "start agent"
 eval `${SSHAGENT} -s` > /dev/null
 r=$?
@@ -41,7 +32,7 @@ EOF
        if [ $? -ne 0 ]; then
                fail "gdb failed: exit code $?"
        fi
-       egrep 'ptrace: Operation not permitted.|procfs:.*Permission denied.|ttrace attach: Permission denied.' >/dev/null ${OBJ}/gdb.out
+       grep 'ptrace: Operation not permitted.' >/dev/null ${OBJ}/gdb.out
        r=$?
        rm -f ${OBJ}/gdb.out
        if [ $r -ne 0 ]; then
This page took 0.042775 seconds and 4 git commands to generate.