diff options
author | trasz <trasz@FreeBSD.org> | 2014-09-17 08:25:48 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-09-17 08:25:48 +0000 |
commit | e073d019f54a312574e298a30d832799ff259bf0 (patch) | |
tree | a2ff94c5a9c8c94983da6108e5042af3b3a73f8e | |
parent | 595559f0641593fefb514b98ac3cd5f1849ac199 (diff) | |
download | FreeBSD-src-e073d019f54a312574e298a30d832799ff259bf0.zip FreeBSD-src-e073d019f54a312574e298a30d832799ff259bf0.tar.gz |
MFC r271167:
Make it possible to quote names in autofs maps using double quotes.
Note that this is a workaround, not a proper solution. If you know
lex well, and want to help - please let me know, I'll explain how it
should work.
PR: 192968
Approved by: re (kib)
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | usr.sbin/autofs/token.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/autofs/token.l b/usr.sbin/autofs/token.l index 8224042..5062a13 100644 --- a/usr.sbin/autofs/token.l +++ b/usr.sbin/autofs/token.l @@ -48,6 +48,7 @@ extern int yylex(void); %option noyywrap %% +\"[^"]+\" { yytext++; yytext[strlen(yytext) - 1] = '\0'; return STR; }; [a-zA-Z0-9\.\+-_/\:\[\]$&{}]+ { return STR; } #.*\n { lineno++; return NEWLINE; }; \\\n { lineno++; }; |