Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
TALLOC_CTX *ctx = talloc_tos();
struct smb_filename *smb_fname_parent = NULL;
bool ret;
+ NTSTATUS status;
SMB_ASSERT(dirfsp == conn->cwd_fsp);
}
/* Get the parent directory permission mask and owners. */
- ret = parent_smb_fname(ctx, smb_fname, &smb_fname_parent, NULL);
- if (ret != true) {
+ status = SMB_VFS_PARENT_PATHNAME(conn,
+ ctx,
+ smb_fname,
+ &smb_fname_parent,
+ NULL);
+ if (!NT_STATUS_IS_OK(status)) {
return false;
}