diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-26 17:42:44 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-26 17:43:54 -0400 |
commit | e061b6da5ee46a334169d4e6a52e49857ae22f55 (patch) | |
tree | 54be48f77a01ef3dce27e2e7df812e0846ddcd12 /config/has/acl-get-entry.c | |
parent | 83dd04452498408c1d46b7282ed08e9f5a1e76a8 (diff) | |
download | bfs-e061b6da5ee46a334169d4e6a52e49857ae22f55.tar.xz |
config: Move .c files into config/{use,has} subdirectories
Diffstat (limited to 'config/has/acl-get-entry.c')
-rw-r--r-- | config/has/acl-get-entry.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/has/acl-get-entry.c b/config/has/acl-get-entry.c new file mode 100644 index 0000000..3cce771 --- /dev/null +++ b/config/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); +} |