s3: smbd : SMB2 - fix SMB2_SEARCH when searching non wildcard string with a case...
commit62403c49924274d58b2e15196fa8082f984a548b
authorJeremy Allison <jra@samba.org>
Tue, 10 Jun 2014 22:58:15 +0000 (10 15:58 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 11 Jun 2014 16:47:14 +0000 (11 18:47 +0200)
tree53566ca54af079c7f0f7f2da27c714db0e65263c
parentb297583dfdeeaef0a9f2a0c8f22b3d22ef187c76
s3: smbd : SMB2 - fix SMB2_SEARCH when searching non wildcard string with a case-canonicalized share.

We need to go through filename_convert() in order for the filename
canonicalization to be done on a non-wildcard search string (as is
done in the SMB1 findfirst code path).

Fixes Bug #10650 - "case sensitive = True" option doesn't work with "max protocol = SMB2" or higher in large directories.

https://bugzilla.samba.org/show_bug.cgi?id=10650

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>
Reviewed-by: Ira Cooper <ira@samba.org>
source3/smbd/smb2_find.c