mangling + wildcards

Jeremy Allison jra at samba.org
Wed Sep 13 17:02:28 GMT 2006


On Mon, Sep 11, 2006 at 03:01:03PM +0300, Shlomi Yaakobovich wrote:
> Hi,
> 
> We've seen a strange behavior with mangling, and wildcards involved too.
> 
> The scenario: Mangling is enabled, case sensitivity is disabled. 2 files exist on the directory:
> 
> aaabbb.txt
> aaa*bbb.txt
> 
> The user (Windows XP) sees one file correctly (aaabbb.txt) and one file mangled. He then attempts to open the mangled file with wordpad, the file that actually gets opened is the unmangled file.
> 
> Looking at the tcpdump (attached) we see that find_first returns 2 files, and then the client chooses the first one (arbitrarily ?). However, the client did not ask for a search pattern, he wanted a specific file, and still samba did the search and found 2 files matching the "pattern".

Ahhhh.

In your log you're running 3.0.20. I think this
is a bug that was fixed after this. I cannot reproduce
your problem with 3.0.23c.

My fix is still valid, although not strictly needed.

I may still commit it to clean up the code a little,
but to be honest your bug is not valid in the latest
relesae.

Jeremy.


More information about the samba-technical mailing list