]> andersk Git - openssh.git/blobdiff - regress/agent-ptrace.sh
- (tim) [contrib/cygwin/ssh-host-config] Patch from Corinna Vinschen.
[openssh.git] / regress / agent-ptrace.sh
index 66c8dbc5822781dba15a12e3455bc9ab0f680d04..d5892ed03098f4b9279840107bc7cbbddc84bc42 100644 (file)
@@ -5,7 +5,7 @@ tid="disallow agent ptrace attach"
 
 if have_prog uname ; then
        case `uname` in
-       CYGWIN*)
+       AIX|CYGWIN*|OSF1)
                echo "skipped (not supported on this platform)"
                exit 0
                ;;
@@ -23,9 +23,9 @@ if test -z "$SUDO" ; then
        echo "skipped (SUDO not set)"
        exit 0
 else
-       $SUDO chown root ${OBJ}${SSHAGENT}
-       $SUDO chgrp root ${OBJ}${SSHAGENT}
-       $SUDO chmod 2755 ${OBJ}${SSHAGENT}
+       $SUDO chown ${SSHAGENT}
+       $SUDO chgrp ${SSHAGENT}
+       $SUDO chmod 2755 ${SSHAGENT}
 fi
 
 trace "start agent"
@@ -41,7 +41,7 @@ EOF
        if [ $? -ne 0 ]; then
                fail "gdb failed: exit code $?"
        fi
-       grep 'ptrace: Operation not permitted.' >/dev/null ${OBJ}/gdb.out
+       egrep 'ptrace: Operation not permitted.|procfs:.*Permission denied.|ttrace.*Permission denied.|procfs:.*: Invalid argument.' >/dev/null ${OBJ}/gdb.out
        r=$?
        rm -f ${OBJ}/gdb.out
        if [ $r -ne 0 ]; then
This page took 0.028194 seconds and 4 git commands to generate.