diff options
author | Ralph Boehme <slow@samba.org> | 2022-05-17 15:17:34 +0200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-06-09 08:53:10 +0000 |
commit | ae7e33885d79f862b9e29ee3cae0ef6e921d5db3 (patch) | |
tree | 820e53996944da523364784ebebcb755d97538e7 | |
parent | d8ad3e216e8e87a74081b89c5579d8d9d8ffdf6c (diff) | |
download | samba-ae7e33885d79f862b9e29ee3cae0ef6e921d5db3.tar.gz |
vfs_gpfs: pass fsp to gpfsacl_emu_chmod()
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 ad06d806831c80a1169468d18b3e59b239a5ba77)
-rw-r--r-- | source3/modules/vfs_gpfs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index acc10b9a4b7..a7029e877da 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1257,9 +1257,11 @@ static uint32_t gpfsacl_mask_filter(uint32_t aceType, uint32_t aceMask, uint32_t } static int gpfsacl_emu_chmod(vfs_handle_struct *handle, - const struct smb_filename *fname, mode_t mode) + struct files_struct *fsp, + mode_t mode) { - char *path = fname->base_name; + struct smb_filename *fname = fsp->fsp_name; + char *path = fsp->fsp_name->base_name; struct SMB4ACL_T *pacl = NULL; int result; bool haveAllowEntry[SMB_ACE4_WHO_EVERYONE + 1] = {False, False, False, False}; @@ -1372,8 +1374,7 @@ static int vfs_gpfs_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t return 0; } - rc = gpfsacl_emu_chmod(handle, fsp->fsp_name, - mode); + rc = gpfsacl_emu_chmod(handle, fsp, mode); if (rc == 1) { return SMB_VFS_NEXT_FCHMOD(handle, fsp, mode); } |