diff options
author | Ralph Boehme <slow@samba.org> | 2022-05-17 15:32:24 +0200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-06-09 08:53:10 +0000 |
commit | 59154a47398d5620071853aefc1cc425ac124715 (patch) | |
tree | b1d24e1254681b295f737678cf9eb199edda9554 /source3 | |
parent | 7ae1fdcbb2f44210f1be3dabd7afc07b9b989b64 (diff) | |
download | samba-59154a47398d5620071853aefc1cc425ac124715.tar.gz |
vfs_gpfs: pass fsp to gpfsacl_get_posix_acl()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15069
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
(cherry picked from commit c26efe0c23b426c4a1e7073b040da85df6f1ea61)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_gpfs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index b607578b354..315ef99932f 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -944,9 +944,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; @@ -1015,8 +1017,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, |