From: Ralph Boehme Date: Tue, 17 May 2022 13:32:24 +0000 (+0200) Subject: vfs_gpfs: pass fsp to gpfsacl_get_posix_acl() X-Git-Tag: talloc-2.3.4~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c26efe0c23b426c4a1e7073b040da85df6f1ea61;p=thirdparty%2Fsamba.git vfs_gpfs: pass fsp to gpfsacl_get_posix_acl() BUG: https://bugzilla.samba.org/show_bug.cgi?id=15069 Signed-off-by: Ralph Boehme Reviewed-by: Christof Schmitt --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index c690561f3e1..41eace799b2 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -950,9 +950,11 @@ static SMB_ACL_T gpfs2smb_acl(const struct gpfs_acl *pacl, TALLOC_CTX *mem_ctx) return result; } -static SMB_ACL_T gpfsacl_get_posix_acl(const char *path, gpfs_aclType_t type, +static SMB_ACL_T gpfsacl_get_posix_acl(struct files_struct *fsp, + gpfs_aclType_t type, TALLOC_CTX *mem_ctx) { + const char *path = fsp->fsp_name->base_name; struct gpfs_acl *pacl; SMB_ACL_T result = NULL; @@ -1021,8 +1023,7 @@ static SMB_ACL_T gpfsacl_sys_acl_get_fd(vfs_handle_struct *handle, DEBUG(0, ("Got invalid type: %d\n", type)); smb_panic("exiting"); } - return gpfsacl_get_posix_acl(fsp->fsp_name->base_name, - gpfs_type, mem_ctx); + return gpfsacl_get_posix_acl(fsp, gpfs_type, mem_ctx); } static int gpfsacl_sys_acl_blob_get_fd(vfs_handle_struct *handle,