From 00e05a0b8ba4c6b16a53d20fa5a8eef8fbd6263a Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 24 Sep 2004 04:49:45 +0000 Subject: r2582: Merge checks for xattr and acl libraries from Samba3 so the {get,set}ntacl programs can build on non-xattr machines. (This used to be commit daad76207dbb4060c231a58c99970e837e1e858f) --- source4/utils/getntacl.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'source4/utils/getntacl.c') diff --git a/source4/utils/getntacl.c b/source4/utils/getntacl.c index b17200aeb5..0d6e86bf3b 100644 --- a/source4/utils/getntacl.c +++ b/source4/utils/getntacl.c @@ -21,7 +21,16 @@ */ #include "includes.h" -#include + +#ifdef HAVE_NO_ACLS + +int main(int argc, char **argv) +{ + printf("ACL support not compiled in."); + return 1; +} + +#else /* Display a security descriptor in "psec" format which is as follows. @@ -114,3 +123,5 @@ int main(int argc, char **argv) print_psec(data, &sd); return 0; } + +#endif /* HAVE_NO_ACLS */ -- cgit