summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-03-14 20:03:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:00 -0500
commitf4c9a4bc44ecf870e836e2af663f068b4f74d4cb (patch)
tree168779752b3f69517f9e6f67b99e8599bfa0b5af
parentef422bff26e5b276b586df0f1016aa71cf163444 (diff)
downloadsamba-f4c9a4bc44ecf870e836e2af663f068b4f74d4cb.tar.gz
samba-f4c9a4bc44ecf870e836e2af663f068b4f74d4cb.tar.bz2
samba-f4c9a4bc44ecf870e836e2af663f068b4f74d4cb.zip
r5789: Patch from William Jojo <jojowil@hvcc.edu> - AIX has no default ACLs.
Bug #2445. Jeremy. (This used to be commit c9b5e32650ef957841d488416922b948804474e2)
-rw-r--r--source3/lib/sysacls.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c
index 4484810884..e7bd288f6e 100644
--- a/source3/lib/sysacls.c
+++ b/source3/lib/sysacls.c
@@ -20,6 +20,9 @@
#include "includes.h"
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_ACLS
+
/*
This file wraps all differing system ACL interfaces into a consistent
one based on the POSIX interface. It also returns the correct errors
@@ -2277,6 +2280,10 @@ SMB_ACL_T sys_acl_get_file( const char *path_p, SMB_ACL_TYPE_T type)
int rc = 0;
uid_t user_id;
+ /* AIX has no DEFAULT */
+ if ( type == SMB_ACL_TYPE_DEFAULT )
+ return NULL;
+
/* Get the acl using statacl */
DEBUG(10,("Entering sys_acl_get_file\n"));