From 58497780ab22d56ac5216c71f5a20efc1e39ce2e Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 17 Jan 2011 16:17:09 +1100 Subject: - (djm) [configure.ac regress/agent-getpeereid.sh regress/multiplex.sh] [regress/sftp-glob.sh regress/test-exec.sh] Rework how feature tests are disabled on platforms that do not support them; add a "config_defined()" shell function that greps for defines in config.h and use them to decide on feature tests. Convert a couple of existing grep's over config.h to use the new function Add a define "FILESYSTEM_NO_BACKSLASH" for filesystem that can't represent backslash characters in filenames, enable it for Cygwin and use it to turn of tests for quotes backslashes in sftp-glob.sh. based on discussion with vinschen AT redhat.com and dtucker@; ok dtucker@ --- regress/agent-getpeereid.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'regress/agent-getpeereid.sh') diff --git a/regress/agent-getpeereid.sh b/regress/agent-getpeereid.sh index 22276a29d..f5f5ba55a 100644 --- a/regress/agent-getpeereid.sh +++ b/regress/agent-getpeereid.sh @@ -7,10 +7,7 @@ UNPRIV=nobody ASOCK=${OBJ}/agent SSH_AUTH_SOCK=/nonexistent -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 +if ! config_defined HAVE_GETPEEREID HAVE_GETPEERUCRED HAVE_SO_PEERCRED ; then echo "skipped (not supported on this platform)" exit 0 fi -- cgit v1.2.3