svn commit: r271167 - head/usr.sbin/autofs

Edward Tomasz Napierala trasz at FreeBSD.org
Fri Sep 5 14:32:09 UTC 2014


Author: trasz
Date: Fri Sep  5 14:32:09 2014
New Revision: 271167
URL: http://svnweb.freebsd.org/changeset/base/271167

Log:
  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

Modified:
  head/usr.sbin/autofs/token.l

Modified: head/usr.sbin/autofs/token.l
==============================================================================
--- head/usr.sbin/autofs/token.l	Fri Sep  5 14:19:02 2014	(r271166)
+++ head/usr.sbin/autofs/token.l	Fri Sep  5 14:32:09 2014	(r271167)
@@ -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++; };


More information about the svn-src-head mailing list