Wildcard handling
Gerald Carter
gcarter at valinux.com
Wed Feb 14 11:40:25 GMT 2001
Andrew Tridgell wrote:
>
> Gerald,
>
> I've now proven that NT does select wildcard behaviour
> based on the protocol dialect that is negotiated. What
> is more interesting is that the behaviour of all
> the wildcard functions (including the NT specific findfirst
> requests) changes, not just the functions that are legal
> with the lower protocol level.
>
> To demonstrate this I modified smbclient to use
> SMBsearch and to not negotiate above LANMAN1 protocol level.
> When connecting to NT the mask ?.??? matched the filename
> "x". Changing to LANMAN1 with NT_FINDFIRST gave the same
> result. Changing to SMBsearch or NT_FINDFIRST with the
> NT1 protocol level changes the result so that "x" does
> not match "?.???".
Yup. That's what I found. I think the only main difference is
how to handle the '?' wildcard. At least as far as I can tell.
Cheers, jerry
----------------------------------------------------------------------
/\ Gerald (Jerry) Carter Professional Services
\/ http://www.valinux.com/ VA Linux Systems gcarter at valinux.com
http://www.samba.org/ SAMBA Team jerry at samba.org
http://www.plainjoe.org/ jerry at plainjoe.org
"...a hundred billion castaways looking for a home."
- Sting "Message in a Bottle" ( 1979 )
More information about the samba-technical
mailing list