diff options
author | Andreas Gruenbacher <andreas.gruenbacher@gmail.com> | 2015-04-12 16:36:37 +0200 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-04-15 23:41:39 +0100 |
commit | da6ebc941e966141e83591408545224274d0cf0f (patch) | |
tree | d1c12ba3b30d647b9d837378afe5fc7955aeb4e1 /modules/acl | |
parent | a09a0344e3282d8b4a927916cf117ba5c1472bdd (diff) | |
download | gnulib-da6ebc941e966141e83591408545224274d0cf0f.tar.gz |
acl: On Linux, check for acls without libacl
On Linux, use the getxattr syscall instead of the acl_extended_file libacl
library function to check for the presence of acls, avoiding a library
dependency.
* lib/file-has-acl.c: Include xattr headers if we have them.
(file_has_acl): On Linux, use getxattr().
* m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
file_has_acl(). Check for xattr headers and getxattr().
* modules/acl: Add a dep on the stdbool module which was already needed.
Add the new reduced dependency LIB_HAS_ACL reference.
Diffstat (limited to 'modules/acl')
-rw-r--r-- | modules/acl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/acl b/modules/acl index fdb0d72025..7faec17163 100644 --- a/modules/acl +++ b/modules/acl @@ -11,6 +11,7 @@ error gettext-h qacl quote +stdbool configure.ac: @@ -22,6 +23,7 @@ Include: Link: $(LIB_ACL) +$(LIB_HAS_ACL) License: GPL |