From 1d68712ba2e439f36874c4ed1e3d9ffec177a06c Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Fri, 2 Apr 2010 22:02:22 +0800 Subject: [BUILTIN] Use faccessat if available Eric Blake suggested that we should use faccessat so that ACLs and other corner cases are handled correctly. This patch does exactly that. Note that faccessat doesn't handle ACLs when euid != uid, as this case is currently implemented by glibc instead of the kernel, using code similar to the existing dash test. Signed-off-by: Herbert Xu --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index df6e099..c943725 100644 --- a/configure.ac +++ b/configure.ac @@ -46,7 +46,8 @@ dnl Checks for header files. AC_CHECK_HEADERS(alloca.h) dnl Checks for library functions. -AC_CHECK_FUNCS(bsearch getpwnam getrlimit imaxdiv isalpha killpg mempcpy \ +AC_CHECK_FUNCS(bsearch faccessat getpwnam getrlimit imaxdiv isalpha killpg \ + mempcpy \ sigsetmask stpcpy strchrnul strsignal strtod strtoimax \ strtoumax sysconf) -- cgit 1.4.1