From 9869ab35577fdeafecdff2bec00036408d576f0e Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Wed, 21 Mar 2007 21:45:48 +1100 Subject: - (dtucker) [regress/agent-getpeereid.sh] Do peereid test if we have HAVE_GETPEERUCRED too. Also from Jan Pechanec. --- regress/agent-getpeereid.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'regress/agent-getpeereid.sh') diff --git a/regress/agent-getpeereid.sh b/regress/agent-getpeereid.sh index e5fcedda7..d71324241 100644 --- a/regress/agent-getpeereid.sh +++ b/regress/agent-getpeereid.sh @@ -7,7 +7,9 @@ UNPRIV=nobody ASOCK=${OBJ}/agent SSH_AUTH_SOCK=/nonexistant -if grep "#undef.*HAVE_GETPEEREID" ${BUILDDIR}/config.h >/dev/null 2>&1 +if grep "#undef.*HAVE_GETPEEREID" ${BUILDDIR}/config.h >/dev/null 2>&1 && \ + grep "#undef.*HAVE_GETPEERUCRED" ${BUILDDIR}/config.h >/dev/null && \ + grep "#undef.*HAVE_SO_PEERCRED" ${BUILDDIR}/config.h >/dev/null then echo "skipped (not supported on this platform)" exit 0 -- cgit v1.2.3