summaryrefslogtreecommitdiffstats
path: root/regress/agent-ptrace.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-10-21 14:27:08 +0200
committerDarren Tucker <dtucker@zip.com.au>2003-10-21 14:27:08 +0200
commitea4c670eb80721dab1237850011576eee15135f5 (patch)
tree83910135c353fb6f33e544fb5b58260097b20bdd /regress/agent-ptrace.sh
parent - (dtucker) [INSTALL] Some system crypt() functions support MD5 passwords (diff)
downloadopenssh-ea4c670eb80721dab1237850011576eee15135f5.tar.xz
openssh-ea4c670eb80721dab1237850011576eee15135f5.zip
- (dtucker) [regress/agent-ptrace.sh] Skip agent-test unless SUDO is set,
make agent setgid during test.
Diffstat (limited to '')
-rw-r--r--regress/agent-ptrace.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/regress/agent-ptrace.sh b/regress/agent-ptrace.sh
index cd9c0023d..66c8dbc58 100644
--- a/regress/agent-ptrace.sh
+++ b/regress/agent-ptrace.sh
@@ -5,7 +5,7 @@ tid="disallow agent ptrace attach"
if have_prog uname ; then
case `uname` in
- Linux|HP-UX|SunOS|NetBSD|AIX|CYGWIN*)
+ CYGWIN*)
echo "skipped (not supported on this platform)"
exit 0
;;
@@ -19,6 +19,15 @@ else
exit 0
fi
+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}
+fi
+
trace "start agent"
eval `${SSHAGENT} -s` > /dev/null
r=$?