diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/acl-get-file.c | 8 | ||||
-rw-r--r-- | config/header.mk | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/config/acl-get-file.c b/config/acl-get-file.c new file mode 100644 index 0000000..89fbf23 --- /dev/null +++ b/config/acl-get-file.c @@ -0,0 +1,8 @@ +#include <stddef.h> +#include <sys/types.h> +#include <sys/acl.h> + +int main(void) { + acl_t acl = acl_get_file(".", ACL_TYPE_DEFAULT); + return acl == (acl_t)NULL; +} diff --git a/config/header.mk b/config/header.mk index c8f8d7c..5da0629 100644 --- a/config/header.mk +++ b/config/header.mk @@ -10,6 +10,7 @@ include config/exports.mk # All header fragments we generate HEADERS := \ ${GEN}/acl-get-entry.h \ + ${GEN}/acl-get-file.h \ ${GEN}/acl-get-tag-type.h \ ${GEN}/acl-is-trivial-np.h \ ${GEN}/aligned-alloc.h \ |