Bug 4451 - directory listing gives results which do not match the search pattern
directory listing gives results which do not match the search pattern
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: File Services
3.0.23a
x64 Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-15 09:59 UTC by Alexander Ihlow
Modified: 2007-03-15 09:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Ihlow 2007-03-15 09:59:35 UTC
This issue is related to a Linux samba server (64 bit) with a windows client.

server$: uname -a
Linux blumeria 2.6.16-1.2069_FC4smp #1 SMP Tue Mar 28 12:48:20 EST 2006 x86_64 x86_64 x86_64 GNU/Linux

server$: /usr/sbin/smbd -V
Version 3.0.23a-1.fc4.1

Server file system is ext3.


To verify, create 5000 files
01A_00000
01A_00001
01A_00002
...
01A_05000
on the Linux server (e.g., in directory ~/test)

#!/bin/bash
for i in `seq -f "%05g" 1 5000`
do
  touch ~/test/01A_$i
done


The home directory is mounted on a windows PC (drive Y:)

Directory listing with a search pattern which does not match any file gives unexpected results: (The returned file list should be empty!)

dir y:\test\02*

15.03.2007  15:36                 0 01A_04050
15.03.2007  15:36                 0 01A_04051
15.03.2007  15:36                 0 01A_04052
15.03.2007  15:36                 0 01A_04053
...
...
15.03.2007  15:36                 0 01A_04777
15.03.2007  15:36                 0 01A_04778
15.03.2007  15:36                 0 01A_04779
15.03.2007  15:36                 0 01A_05000
              71 Datei(en)              0 Bytes
               0 Verzeichnis(se), 447.376.936.960 Bytes frei