summaryrefslogtreecommitdiffstats
path: root/usr.sbin/autofs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-09-17 08:25:48 +0000
committertrasz <trasz@FreeBSD.org>2014-09-17 08:25:48 +0000
commite073d019f54a312574e298a30d832799ff259bf0 (patch)
treea2ff94c5a9c8c94983da6108e5042af3b3a73f8e /usr.sbin/autofs
parent595559f0641593fefb514b98ac3cd5f1849ac199 (diff)
downloadFreeBSD-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
Diffstat (limited to 'usr.sbin/autofs')
-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