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 /libbb | |
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 'libbb')
-rw-r--r-- | libbb/parse_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/parse_config.c b/libbb/parse_config.c index cf5ba4deb..1590d9a4c 100644 --- a/libbb/parse_config.c +++ b/libbb/parse_config.c | |||
@@ -204,7 +204,7 @@ int FAST_FUNC config_read(parser_t *parser, char **tokens, unsigned flags, const | |||
204 | line += strcspn(line, delims[0] ? delims : delims + 1); | 204 | line += strcspn(line, delims[0] ? delims : delims + 1); |
205 | } else { | 205 | } else { |
206 | /* Combining, find comment char if any */ | 206 | /* Combining, find comment char if any */ |
207 | line = strchrnul(line, delims[0]); | 207 | line = strchrnul(line, PARSE_EOL_COMMENTS ? delims[0] : '\0'); |
208 | 208 | ||
209 | /* Trim any extra delimiters from the end */ | 209 | /* Trim any extra delimiters from the end */ |
210 | if (flags & PARSE_TRIM) { | 210 | if (flags & PARSE_TRIM) { |