From b05ce8f0470695cbba2da6caad09d604fac5da39 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 16 Mar 2005 19:31:15 +0000 Subject: 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) --- source3/smbd/trans2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd/trans2.c') 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. */ -- cgit