Commit 004618ff authored by Volker Lendecke's avatar Volker Lendecke Committed by Gerald (Jerry) Carter
Browse files

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)
parent 81c497b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);