diff options
author | trasz <trasz@FreeBSD.org> | 2014-11-14 10:53:55 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-11-14 10:53:55 +0000 |
commit | fd82234ffe1530f61c8a4235772c9021ec2a898c (patch) | |
tree | ceebc4be4c248bbe824779695f96cf6030a96954 | |
parent | b4e4ada2c9ccaa706bc8ceec5a5887ced58867fb (diff) | |
download | FreeBSD-src-fd82234ffe1530f61c8a4235772c9021ec2a898c.zip FreeBSD-src-fd82234ffe1530f61c8a4235772c9021ec2a898c.tar.gz |
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@
-rw-r--r-- | usr.sbin/autofs/token.l | 2 |
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; } |