summaryrefslogtreecommitdiffstats
path: root/config/acl-get-entry.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-22 09:45:54 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-22 11:19:20 -0400
commitb2d31717511bd21854840bd69875ca80b875137a (patch)
tree6fff94178bfab41746bcf10e7f5c3f516e9ca92a /config/acl-get-entry.c
parent569e6758e26e23c27d94c0d132bf5e26ee5af862 (diff)
downloadbfs-b2d31717511bd21854840bd69875ca80b875137a.tar.xz
config: Check for acl_get_{entry,tag_type}()
Diffstat (limited to 'config/acl-get-entry.c')
-rw-r--r--config/acl-get-entry.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/acl-get-entry.c b/config/acl-get-entry.c
new file mode 100644
index 0000000..3cce771
--- /dev/null
+++ b/config/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);
+}