Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 2014 19:55:34 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273107 - head/usr.sbin/autofs
Message-ID:  <201410141955.s9EJtYrU025280@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Tue Oct 14 19:55:34 2014
New Revision: 273107
URL: https://svnweb.freebsd.org/changeset/base/273107

Log:
  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@
  MFC after:	1 month

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

Modified: head/usr.sbin/autofs/token.l
==============================================================================
--- head/usr.sbin/autofs/token.l	Tue Oct 14 19:38:31 2014	(r273106)
+++ head/usr.sbin/autofs/token.l	Tue Oct 14 19:55:34 2014	(r273107)
@@ -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; }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410141955.s9EJtYrU025280>