From 004618ffccbd679f3a2e3532871e8bac3be8f7da Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 28 May 2004 19:15:11 +0000 Subject: 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) --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/reply.c') 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); -- cgit