vfs_gpfs: add support for SMB_ACL_TYPE_DEFAULT in gpfsacl_sys_acl_set_fd()
authorRalph Boehme <slow@samba.org>
Sun, 13 Dec 2020 08:19:25 +0000 (09:19 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 17 Dec 2020 18:56:28 +0000 (18:56 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_gpfs.c

index 56a7254a7e625cbec93dbad47dc1546d0425584d..e06df81d911385247e16e278a44dd94607b92f47 100644 (file)
@@ -1356,8 +1356,11 @@ static int gpfsacl_sys_acl_set_fd(vfs_handle_struct *handle,
                return SMB_VFS_NEXT_SYS_ACL_SET_FD(handle, fsp, type, theacl);
        }
 
+       /*
+        * This is no longer a handle based call.
+        */
        return gpfsacl_sys_acl_set_file(handle, fsp->fsp_name,
-                                       SMB_ACL_TYPE_ACCESS, theacl);
+                                       type, theacl);
 }
 
 static int gpfsacl_sys_acl_delete_def_file(vfs_handle_struct *handle,