}
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};
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);
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);