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

Edward Tomasz Napierala trasz at FreeBSD.org
Fri Nov 14 10:53:56 UTC 2014


Author: trasz
Date: Fri Nov 14 10:53:55 2014
New Revision: 274499
URL: https://svnweb.freebsd.org/changeset/base/274499

Log:
  MFC r273107:
  
  Make automount(8)/automountd(8) treat percent sign as a valid part
  of path.  It's useful for spaces encoded as %20 as msdosfs labels.
  
  Submitted by:	glebius@

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	Fri Nov 14 10:05:53 2014	(r274498)
+++ stable/10/usr.sbin/autofs/token.l	Fri Nov 14 10:53:55 2014	(r274499)
@@ -49,7 +49,7 @@ extern int	yylex(void);
 
 %%
 \"[^"]+\"		{ yytext++; yytext[strlen(yytext) - 1] = '\0'; return STR; };
-[a-zA-Z0-9\.\+-_/\:\[\]$&{}]+ { return STR; }
+[a-zA-Z0-9\.\+-_/\:\[\]$&%{}]+ { return STR; }
 #.*\n			{ lineno++; return NEWLINE; };
 \\\n			{ lineno++; };
 \n			{ lineno++; return NEWLINE; }


More information about the svn-src-all mailing list