Off-topic. This function is insane and should be removed..
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
NTSTATUS status = NT_STATUS_OK;
struct smb_filename *parent = NULL;
struct smb_filename *pathref = NULL;
- bool ok;
if (!CAN_WRITE(conn)) {
status = NT_STATUS_MEDIA_WRITE_PROTECTED;
creates the file. This isn't the correct thing to do in the copy
case. JRA */
- ok = parent_smb_fname(talloc_tos(),
- smb_fname_dst,
- &parent,
- NULL);
- if (!ok) {
- status = NT_STATUS_NO_MEMORY;
+ status = SMB_VFS_PARENT_PATHNAME(conn,
+ talloc_tos(),
+ smb_fname_dst,
+ &parent,
+ NULL);
+ if (!NT_STATUS_IS_OK(status)) {
goto out;
}
if (smb_fname_dst->fsp == NULL) {