summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-09-05 14:32:09 +0000
committertrasz <trasz@FreeBSD.org>2014-09-05 14:32:09 +0000
commit4821016c8a24b622ed56a8ef94bbdda54dba365b (patch)
tree712b1e35b163913d611960c10675211407cb0369 /usr.sbin
parenta76d5e2b8d71ba27deff309fc70469aae3f2fee4 (diff)
downloadFreeBSD-src-4821016c8a24b622ed56a8ef94bbdda54dba365b.zip
FreeBSD-src-4821016c8a24b622ed56a8ef94bbdda54dba365b.tar.gz
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 MFC after: 1 week Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/autofs/token.l1
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++; };
OpenPOWER on IntegriCloud