mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
vfs_gpfs: pass smb_fname to gpfsacl_emu_chmod()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
f80c97cb8d
commit
2d02da5d83
@ -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);
|
||||
|
Reference in New Issue
Block a user