From ed3296f6958bbc43e55b9fe41b3f0f7ac0336cc2 Mon Sep 17 00:00:00 2001 From: trasz Date: Fri, 14 Nov 2014 10:53:55 +0000 Subject: [PATCH] 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@ git-svn-id: svn://svn.freebsd.org/base/stable/10@274499 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.sbin/autofs/token.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/autofs/token.l b/usr.sbin/autofs/token.l index 5062a137a..6a92b7f13 100644 --- a/usr.sbin/autofs/token.l +++ b/usr.sbin/autofs/token.l @@ -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; } -- 2.45.0