diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-01-11 00:37:17 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-01-11 00:37:17 +0100 |
commit | 499597d6efb0de5bb6d6f52bda1f348478d7f5a9 (patch) | |
tree | 002da32a858f8c89cbacfe15f9d812c202810403 /util-linux | |
parent | 982fdaf4b2f335506e570a06d5eab09068da3f61 (diff) | |
download | busybox-w32-499597d6efb0de5bb6d6f52bda1f348478d7f5a9.tar.gz busybox-w32-499597d6efb0de5bb6d6f52bda1f348478d7f5a9.tar.bz2 busybox-w32-499597d6efb0de5bb6d6f52bda1f348478d7f5a9.zip |
mdev: do not treat non-leading '#' chars as start of comment. Closes 4676
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/mdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index c6be1b872..e5f0c2deb 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -206,7 +206,8 @@ static void parse_next_rule(void) | |||
206 | char *tokens[4]; | 206 | char *tokens[4]; |
207 | char *val; | 207 | char *val; |
208 | 208 | ||
209 | if (!config_read(G.parser, tokens, 4, 3, "# \t", PARSE_NORMAL)) | 209 | /* No PARSE_EOL_COMMENTS, because command may contain '#' chars */ |
210 | if (!config_read(G.parser, tokens, 4, 3, "# \t", PARSE_NORMAL & ~PARSE_EOL_COMMENTS)) | ||
210 | break; | 211 | break; |
211 | 212 | ||
212 | /* Fields: [-]regex uid:gid mode [alias] [cmd] */ | 213 | /* Fields: [-]regex uid:gid mode [alias] [cmd] */ |