]> Savannah Git Hosting - gnulib.git/commit
acl: On Linux, check for acls without libacl
authorAndreas Gruenbacher <andreas.gruenbacher@gmail.com>
Sun, 12 Apr 2015 14:36:37 +0000 (16:36 +0200)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Apr 2015 22:41:39 +0000 (23:41 +0100)
commitda6ebc941e966141e83591408545224274d0cf0f
treed1c12ba3b30d647b9d837378afe5fc7955aeb4e1
parenta09a0344e3282d8b4a927916cf117ba5c1472bdd
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.
ChangeLog
NEWS
lib/file-has-acl.c
m4/acl.m4
modules/acl