make agent setgid during test.
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
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
;;
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=$?