r2778: merged the new samba4 ms_fnmatch code to Samba3. Thanks to Rusty