Author: tridge
Date: 2004-12-30 02:38:44 +0000 (Thu, 30 Dec 2004)
New Revision: 4405

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

Log:
added acl inheritance to the mkdir and t2mkdir backends.


Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c  2004-12-30 02:27:16 UTC 
(rev 4404)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c  2004-12-30 02:38:44 UTC 
(rev 4405)
@@ -60,6 +60,13 @@
                return NT_STATUS_INTERNAL_ERROR;
        }
 
+       /* setup an inherited acl from the parent */
+       status = pvfs_acl_inherit(pvfs, req, name, -1);
+       if (!NT_STATUS_IS_OK(status)) {
+               rmdir(name->full_name);
+               return status;
+       }
+
        /* setup any EAs that were asked for */
        status = pvfs_setfileinfo_ea_set(pvfs, name, -1, 
                                         md->t2mkdir.in.num_eas,
@@ -109,6 +116,13 @@
 
        pvfs_xattr_unlink_hook(pvfs, name->full_name);
 
+       /* setup an inherited acl from the parent */
+       status = pvfs_acl_inherit(pvfs, req, name, -1);
+       if (!NT_STATUS_IS_OK(status)) {
+               rmdir(name->full_name);
+               return status;
+       }
+
        return NT_STATUS_OK;
 }
 

Reply via email to