summaryrefslogtreecommitdiffstats
path: root/config/acl-get-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'config/acl-get-file.c')
-rw-r--r--config/acl-get-file.c8
1 files changed, 8 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;
+}