summaryrefslogtreecommitdiffstats
path: root/build/has/acl-get-entry.c
blob: 1e7f473ed8443746e0aa0af3d626db3efecf7870 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

#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);
}