dll: fuse: fuse_opt_parse: bugfix in handling templates of the form NAME=VALUE

This commit is contained in:
Bill Zissimopoulos
2016-06-03 15:06:56 -07:00
parent e08b462566
commit 22da074ff7
2 changed files with 15 additions and 1 deletions

View File

@ -102,7 +102,14 @@ static void fsp_fuse_opt_match_templ(
else if ('=' == *p)
{
if (*q == *p)
*pspec = p + 1, *parg = q + 1;
{
p++, q++;
if ('%' == *p || '\0' == *p)
*pspec = p, *parg = q;
else
*parg = 0 == lstrcmpA(q, p) ?
fsp_fuse_opt_match_exact : fsp_fuse_opt_match_none;
}
else
*parg = fsp_fuse_opt_match_none;
break;