summaryrefslogtreecommitdiffstats
path: root/usr.sbin/autofs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-10-14 19:55:34 +0000
committertrasz <trasz@FreeBSD.org>2014-10-14 19:55:34 +0000
commit11a43062e88f70b200a22f55d472124cfee3ee1c (patch)
treefe033e9340f7149698ecd1b13d18353979e1d853 /usr.sbin/autofs
parent3b410357034cd5ef48ef5ede476e0cbe520e2cad (diff)
downloadFreeBSD-src-11a43062e88f70b200a22f55d472124cfee3ee1c.zip
FreeBSD-src-11a43062e88f70b200a22f55d472124cfee3ee1c.tar.gz
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
Diffstat (limited to 'usr.sbin/autofs')
-rw-r--r--usr.sbin/autofs/token.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/autofs/token.l b/usr.sbin/autofs/token.l
index 5062a13..6a92b7f 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; }
OpenPOWER on IntegriCloud