diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-10-21 22:26:43 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-10-21 22:26:43 +1000 |
commit | e26ed504db0ef9ba0655b5531a0a3737919114c5 (patch) | |
tree | dc40da94ed0faa5e6cc1050f11bdc70552c8e401 | |
parent | 8dfd1fca8c42eaf6e37600012ad307ad2b1e8e28 (diff) | |
download | openssh-git-e26ed504db0ef9ba0655b5531a0a3737919114c5.tar.gz |
- (dtucker) [regress/agent-ptrace.sh] Skip agent-test unless SUDO is set,
make agent setgid during test.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | regress/agent-ptrace.sh | 11 |
2 files changed, 13 insertions, 2 deletions
@@ -1,6 +1,8 @@ 20031021 - (dtucker) [INSTALL] Some system crypt() functions support MD5 passwords directly. Noted by Darren.Moffat at sun.com. + - (dtucker) [regress/agent-ptrace.sh] Skip agent-test unless SUDO is set, + make agent setgid during test. 20031017 - (dtucker) [INSTALL] Note that --with-md5 is now required on platforms with @@ -1253,4 +1255,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.2994.2.53 2003/10/21 02:40:00 dtucker Exp $ +$Id: ChangeLog,v 1.2994.2.54 2003/10/21 12:26:43 dtucker Exp $ diff --git a/regress/agent-ptrace.sh b/regress/agent-ptrace.sh index cd9c0023..66c8dbc5 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=$? |