diff options
author | Damien Miller <djm@mindrot.org> | 2011-01-17 16:17:09 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2011-01-17 16:17:09 +1100 |
commit | 58497780ab22d56ac5216c71f5a20efc1e39ce2e (patch) | |
tree | 312f7c1feb15d707cca175244d0f5541becdf5ca /regress/agent-getpeereid.sh | |
parent | 0c93adc7c1814b113d25c5e214973a3aa630b0af (diff) |
- (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@
Diffstat (limited to 'regress/agent-getpeereid.sh')
-rw-r--r-- | regress/agent-getpeereid.sh | 5 |
1 files changed, 1 insertions, 4 deletions
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 | |||
7 | ASOCK=${OBJ}/agent | 7 | ASOCK=${OBJ}/agent |
8 | SSH_AUTH_SOCK=/nonexistent | 8 | SSH_AUTH_SOCK=/nonexistent |
9 | 9 | ||
10 | if grep "#undef.*HAVE_GETPEEREID" ${BUILDDIR}/config.h >/dev/null 2>&1 && \ | 10 | if ! config_defined HAVE_GETPEEREID HAVE_GETPEERUCRED HAVE_SO_PEERCRED ; then |
11 | grep "#undef.*HAVE_GETPEERUCRED" ${BUILDDIR}/config.h >/dev/null && \ | ||
12 | grep "#undef.*HAVE_SO_PEERCRED" ${BUILDDIR}/config.h >/dev/null | ||
13 | then | ||
14 | echo "skipped (not supported on this platform)" | 11 | echo "skipped (not supported on this platform)" |
15 | exit 0 | 12 | exit 0 |
16 | fi | 13 | fi |