Pass in the passed dirfsp if available, else handle->conn->cwd_fsp.
No logic changes.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
}
int rmdir_acl_common(struct vfs_handle_struct *handle,
- const struct smb_filename *smb_fname)
+ struct files_struct *dirfsp,
+ const struct smb_filename *smb_fname)
{
int ret;
const char *module_name);
int rmdir_acl_common(struct vfs_handle_struct *handle,
- const struct smb_filename *smb_fname);
+ struct files_struct *dirfsp,
+ const struct smb_filename *smb_fname);
int unlink_acl_common(struct vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
}
if (flags & AT_REMOVEDIR) {
- ret = rmdir_acl_common(handle, smb_fname_tmp);
+ ret = rmdir_acl_common(handle,
+ dirfsp,
+ smb_fname_tmp);
} else {
ret = unlink_acl_common(handle,
dirfsp,
return -1;
}
- ret = rmdir_acl_common(handle, smb_fname);
+ ret = rmdir_acl_common(handle,
+ handle->conn->cwd_fsp,
+ smb_fname);
if (ret == -1) {
return -1;
}
int ret;
if (flags & AT_REMOVEDIR) {
- ret = rmdir_acl_common(handle, smb_fname);
+ ret = rmdir_acl_common(handle,
+ dirfsp,
+ smb_fname);
} else {
ret = unlink_acl_common(handle,
dirfsp,
static int acl_xattr_rmdir(vfs_handle_struct *handle,
const struct smb_filename *smb_dname)
{
- return rmdir_acl_common(handle, smb_dname);
+ return rmdir_acl_common(handle,
+ handle->conn->cwd_fsp,
+ smb_dname);
}
static NTSTATUS acl_xattr_fget_nt_acl(vfs_handle_struct *handle,