From 649e1274c7e5992b34125c5df507d5f50903729d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 2 Sep 2004 22:35:36 +0000 Subject: r2194: Here is the efforts of much pain reproducing W2K3 pathname parsing. :-(. One more check for CreateFile() needed. Jeremy. (This used to be commit 294e2021b34c806900ec65ecbf17d9038ac6229a) --- source3/smbd/trans2.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/smbd/trans2.c') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index f3176940c2..0a6ff04ad2 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1381,6 +1381,11 @@ close_if_end = %d requires_resume_key = %d level = 0x%x, max_data_bytes = %d\n", srvstr_get_path(inbuf, directory, params+12, sizeof(directory), -1, STR_TERMINATE, &ntstatus, True); if (!NT_STATUS_IS_OK(ntstatus)) { + /* W2k3 never seems to return OBJECT_PATH_NOT_FOUND on a + bad pathname parse in a findfirst, but always OBJECT_NAME_INVALID. JRA */ + /* It remains to be seen what it does on CreateFile(). JRA. (ie. I need to check) */ + if (NT_STATUS_EQUAL(NT_STATUS_OBJECT_PATH_NOT_FOUND,ntstatus)) + return ERROR_NT(NT_STATUS_OBJECT_NAME_INVALID); return ERROR_NT(ntstatus); } -- cgit