From a5e9e2bee78b3eb5ec7cf20e0c2ef9bddc22cda7 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Fri, 5 Sep 2014 14:32:09 +0000 Subject: [PATCH] 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 --- usr.sbin/autofs/token.l | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/autofs/token.l b/usr.sbin/autofs/token.l index 8224042114d..5062a137a23 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++; };