[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] [PATCH] Use `test -e' instead of `test -r' when testing

From: Guillem Jover
Subject: [bug-inetutils] [PATCH] Use `test -e' instead of `test -r' when testing paths
Date: Thu, 3 Dec 2009 22:01:31 +0100

From: Samuel Thibault <address@hidden>

While testing paths, ./configure uses test -r to check for those who
are not provided by system headers.  However, this does not work for
root-only files.  On hurd-i386 for instance, /dev/klog is only root
readable, so the test fails, and thus inetutils-syslogd doesn't fill
/dev/kern.log. ./configure should use test -e instead.

* am/config_paths.m4 (IU_CONFIG_PATHS): Set iu_test_type to `e'.
 am/config_paths.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/am/config_paths.m4 b/am/config_paths.m4
index b7d1bed..47dabb7 100644
--- a/am/config_paths.m4
+++ b/am/config_paths.m4
@@ -86,7 +86,7 @@ AC_DEFUN([IU_CONFIG_PATHS], [
       # search for a reasonable value
-      iu_test_type=r           # `exists'
+      iu_test_type=e           # `exists'
       iu_default='' iu_prev_cross_test=''
       for iu_try in $iu_paths_h $iu_search; do

reply via email to

[Prev in Thread] Current Thread [Next in Thread]