summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-05-28 19:15:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:50 -0500
commit004618ffccbd679f3a2e3532871e8bac3be8f7da (patch)
treec7ded8ed84335ff7974f442bfbd5ea2667c75871 /source3/smbd/reply.c
parent81c497b38b33f6917e2f46182c26b1ff0fcbae7d (diff)
downloadsamba-004618ffccbd679f3a2e3532871e8bac3be8f7da.tar.gz
samba-004618ffccbd679f3a2e3532871e8bac3be8f7da.tar.bz2
samba-004618ffccbd679f3a2e3532871e8bac3be8f7da.zip
r942: If using DOS error codes, we need to return ERRDOS/ERRbadpath for chkpth even
if only the last component failed. I'm not sure if all the other cases of NT_STATUS_OBJECT_NAME_NOT_FOUND also need to be fixed, this at least helps with 'copy test1.txt test2.txt' from DOS within a subdirectory. Yes, I do have someone who needs this :-) Jeremy, could you take a look at this? Thanks, Volker (This used to be commit 3093ab100653782bd8e029170d315c68b7f271af)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 560208ae15..fff5385171 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -555,7 +555,7 @@ int reply_chkpth(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
return ERROR_NT(NT_STATUS_OBJECT_PATH_NOT_FOUND);
} else {
END_PROFILE(SMBchkpth);
- return ERROR_NT(NT_STATUS_OBJECT_NAME_NOT_FOUND);
+ return ERROR_BOTH(NT_STATUS_OBJECT_NAME_NOT_FOUND,ERRDOS,ERRbadpath);
}
} else if (errno == ENOTDIR) {
END_PROFILE(SMBchkpth);