From 71e7974f3f847759ba6f844ea7f482786cc5db02 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 30 Apr 2000 04:45:16 +0000 Subject: YIPEE!!!!! We finally have a perfect emulation of Microsoft wildcard matching. The routine ms_fnmatch() does wildcard matching with all MS wildcards (including the unicode wildcards), and masktest against a NT4 workstation with hundreds of thousands of random exmaples has not found a single error. amazingly it is only about 60 lines of code, but it has taken us years to get it right. I didn't sleep much last night :) (This used to be commit cc9e007cdfdd300189f89e2a55e4234e47fa842d) --- source3/libsmb/clilist.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/libsmb/clilist.c') diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 4cb477961b..f2e42be523 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -123,6 +123,7 @@ static int interpret_long_filename(int level,char *p,file_info *finfo) namelen = IVAL(p,0); p += 4; p += 4; /* EA size */ p += 2; /* short name len? */ + unistr_to_ascii(finfo->short_name, p, 12); p += 24; /* short name? */ StrnCpy(finfo->name,p,MIN(sizeof(finfo->name)-1,namelen)); dos_to_unix(finfo->name,True); -- cgit