diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-22 10:49:25 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-22 11:19:20 -0400 |
commit | 4b8669f968aae6dc0267c8d46ef265432c681b46 (patch) | |
tree | ff9225b06ff1fb68e9b7e95722d03277cb573f28 /config/acl-get-file.c | |
parent | 3d58ea8f735ce57a62fc678ca36b388b9c731c83 (diff) | |
download | bfs-4b8669f968aae6dc0267c8d46ef265432c681b46.tar.xz |
config: Check for acl_get_file()
Diffstat (limited to 'config/acl-get-file.c')
-rw-r--r-- | config/acl-get-file.c | 8 |
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; +} |