summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-30 04:45:16 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-30 04:45:16 +0000
commit71e7974f3f847759ba6f844ea7f482786cc5db02 (patch)
treedab76d4d1260161ae515907a852a1c00bdb52511 /source3/libsmb
parentc0e1c6505329972835ccbf6886f8aab8eb33e634 (diff)
downloadsamba-71e7974f3f847759ba6f844ea7f482786cc5db02.tar.gz
samba-71e7974f3f847759ba6f844ea7f482786cc5db02.tar.bz2
samba-71e7974f3f847759ba6f844ea7f482786cc5db02.zip
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)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clilist.c1
1 files changed, 1 insertions, 0 deletions
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);