Commit 01677078 authored by Ludovic Rousseau's avatar Ludovic Rousseau

Allow "=" in serial driver filenames

For example the configuration:
LIBPATH       /tmp/lib/pcsc/drivers/lib=ccid.dylib
failed with:
00000057 configfile.l:165:evaluatetoken() Error with library /tmp/lib/pcsc/drivers/lib: No such file or directory

The problem was detected on Android 8.0 with file names such as:
/data/app/com.baimobile.android.enterprise.credential.service-4wM9GBtoaS74ZiA0Y25YuQ==/lib/arm64/lib_some_reader_driver.so

Thanks to Alan Kozlay for the bug report and patch.
parent 08664ae6
......@@ -72,7 +72,7 @@ void tok_error(char *pcToken_error);
"\n" { iLinenumber++; }
(\"[^"\n]*["\n])|(\'[^'\n]*['\n]) { (void)evaluatetoken(yytext); }
[ \t] {}
([A-Z]|[a-z]|[0-9]|[\\\/\-\.\_\@:])+ { (void)evaluatetoken(yytext); }
([A-Z]|[a-z]|[0-9]|[=\\\/\-\.\_\@:])+ { (void)evaluatetoken(yytext); }
. { iOldLinenumber = iLinenumber; tok_error(yytext); }
%%
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment