Author: jra
Date: 2005-03-14 20:03:32 +0000 (Mon, 14 Mar 2005)
New Revision: 5789

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5789

Log:
Patch from William Jojo <[EMAIL PROTECTED]> - AIX has no default ACLs.
Bug #2445.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/lib/sysacls.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/sysacls.c
===================================================================
--- branches/SAMBA_3_0/source/lib/sysacls.c     2005-03-14 20:03:27 UTC (rev 
5788)
+++ branches/SAMBA_3_0/source/lib/sysacls.c     2005-03-14 20:03:32 UTC (rev 
5789)
@@ -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 @@
        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"));

Reply via email to