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

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