r5833: Revert change for bug #2335. Tested with a Win9x client and the original
authorJeremy Allison <jra@samba.org>
Wed, 16 Mar 2005 19:31:15 +0000 (19:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:04 +0000 (10:56 -0500)
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.

source/smbd/trans2.c

index ac2a29bd6049cfaa50b4cd641d930df5993a698b..e4e1243d68ecec7ea1143fcdbcdf23a4fcaea9c0 100644 (file)
@@ -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. */