summaryrefslogtreecommitdiffstats
path: root/build/has/acl-get-entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/has/acl-get-entry.c')
-rw-r--r--build/has/acl-get-entry.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/has/acl-get-entry.c b/build/has/acl-get-entry.c
new file mode 100644
index 0000000..3cce771
--- /dev/null
+++ b/build/has/acl-get-entry.c
@@ -0,0 +1,8 @@
+#include <sys/types.h>
+#include <sys/acl.h>
+
+int main(void) {
+ acl_t acl = acl_get_file(".", ACL_TYPE_DEFAULT);
+ acl_entry_t entry;
+ return acl_get_entry(acl, ACL_FIRST_ENTRY, &entry);
+}