summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/getntacl.c13
-rw-r--r--source4/utils/setntacl.c13
2 files changed, 24 insertions, 2 deletions
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 <attr/xattr.h>
+
+#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 */
diff --git a/source4/utils/setntacl.c b/source4/utils/setntacl.c
index 492c3ba9fe..93939caec0 100644
--- a/source4/utils/setntacl.c
+++ b/source4/utils/setntacl.c
@@ -21,7 +21,16 @@
*/
#include "includes.h"
-#include <attr/xattr.h>
+
+#ifdef HAVE_NO_ACLS
+
+int main(int argc, char **argv)
+{
+ printf("ACL support not compiled in.");
+ return 1;
+}
+
+#else
static void setntacl(char *filename, struct security_descriptor *sd)
{
@@ -103,3 +112,5 @@ static void setntacl(char *filename, struct security_descriptor *sd)
return 0;
}
+
+#endif /* HAVE_NO_ACLS */