summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-03-16 19:31:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:04 -0500
commitb05ce8f0470695cbba2da6caad09d604fac5da39 (patch)
tree3bedd9e388afba378c5820b5be83504f6bd89b1c /source3
parente2673ae1c5f942a2197ec5eb68712c382370f6b3 (diff)
downloadsamba-b05ce8f0470695cbba2da6caad09d604fac5da39.tar.gz
samba-b05ce8f0470695cbba2da6caad09d604fac5da39.tar.bz2
samba-b05ce8f0470695cbba2da6caad09d604fac5da39.zip
r5833: Revert change for bug #2335. Tested with a Win9x client and the original
error code is correct. I have some theories as to why this is different, I'll add some code to the torture tester to confirm. Jeremy. (This used to be commit a7a7af6815e1123f27070a2fe0a92de5b4372913)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index ac2a29bd60..e4e1243d68 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1484,13 +1484,13 @@ close_if_end = %d requires_resume_key = %d level = 0x%x, max_data_bytes = %d\n",
}
/*
- * If there are no matching entries we must return ERRDOS/ERRnofiles -
+ * If there are no matching entries we must return ERRDOS/ERRbadfile -
* from observation of NT.
*/
if(numentries == 0) {
dptr_close(&dptr_num);
- return ERROR_DOS(ERRDOS,ERRnofiles);
+ return ERROR_DOS(ERRDOS,ERRbadfile);
}
/* At this point pdata points to numentries directory entries. */