svn commit: r271704 - stable/10/usr.sbin/autofs

Edward Tomasz Napierala trasz at FreeBSD.org
Wed Sep 17 08:25:49 UTC 2014


Author: trasz
Date: Wed Sep 17 08:25:48 2014
New Revision: 271704
URL: http://svnweb.freebsd.org/changeset/base/271704

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

Modified:
  stable/10/usr.sbin/autofs/token.l
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/autofs/token.l
==============================================================================
--- stable/10/usr.sbin/autofs/token.l	Wed Sep 17 07:55:23 2014	(r271703)
+++ stable/10/usr.sbin/autofs/token.l	Wed Sep 17 08:25:48 2014	(r271704)
@@ -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-all mailing list