From 2d02da5d8335e551bf50d7e671cea129182a5c60 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 30 Apr 2020 11:28:57 +0200 Subject: [PATCH] vfs_gpfs: pass smb_fname to gpfsacl_emu_chmod() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/modules/vfs_gpfs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 4014e92ada2..193b9b502f9 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1410,8 +1410,9 @@ static uint32_t gpfsacl_mask_filter(uint32_t aceType, uint32_t aceMask, uint32_t } static int gpfsacl_emu_chmod(vfs_handle_struct *handle, - const char *path, mode_t mode) + const struct smb_filename *fname, mode_t mode) { + char *path = fname->base_name; struct SMB4ACL_T *pacl = NULL; int result; bool haveAllowEntry[SMB_ACE4_WHO_EVERYONE + 1] = {False, False, False, False}; @@ -1529,7 +1530,7 @@ static int vfs_gpfs_chmod(vfs_handle_struct *handle, return 0; } - rc = gpfsacl_emu_chmod(handle, smb_fname->base_name, mode); + rc = gpfsacl_emu_chmod(handle, smb_fname, mode); if (rc == 1) return SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode); @@ -1551,7 +1552,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->base_name, + rc = gpfsacl_emu_chmod(handle, fsp->fsp_name, mode); if (rc == 1) return SMB_VFS_NEXT_FCHMOD(handle, fsp, mode); -- 2.47.3