]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:vfs/gpfs: Have inherited deny ACE's show up in ACLs
authorAlexander Werth <alexander.werth@de.ibm.com>
Fri, 20 Jan 2012 18:17:21 +0000 (19:17 +0100)
committerChristian Ambach <ambi@samba.org>
Tue, 8 May 2012 20:37:05 +0000 (22:37 +0200)
Don't use the mode for the get_acl call that surpresses
inherited deny ACE's. This is now possible since
the inherited ACE flag exists now in GPFS and Samba.

source3/modules/vfs_gpfs.c

index 80f6d6e653d8d1286777fc65b08a06041ca9b217..4b0f9ebaf724c564f7eb2beb4c7262b363fb0d8a 100644 (file)
@@ -232,7 +232,7 @@ static struct gpfs_acl *gpfs_getacl_alloc(const char *fname, gpfs_aclType_t type
        acl->acl_version = 0;
        acl->acl_type = type;
 
-       ret = smbd_gpfs_getacl((char *)fname, GPFS_GETACL_STRUCT | GPFS_ACL_SAMBA, acl);
+       ret = smbd_gpfs_getacl((char *)fname, GPFS_GETACL_STRUCT, acl);
        if ((ret != 0) && (errno == ENOSPC)) {
                struct gpfs_acl *new_acl = (struct gpfs_acl *)TALLOC_SIZE(
                        mem_ctx, acl->acl_len + sizeof(struct gpfs_acl));
@@ -247,7 +247,7 @@ static struct gpfs_acl *gpfs_getacl_alloc(const char *fname, gpfs_aclType_t type
                new_acl->acl_type = acl->acl_type;
                acl = new_acl;
 
-               ret = smbd_gpfs_getacl((char *)fname, GPFS_GETACL_STRUCT | GPFS_ACL_SAMBA, acl);
+               ret = smbd_gpfs_getacl((char *)fname, GPFS_GETACL_STRUCT, acl);
        }
        if (ret != 0)
        {