diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-19 22:57:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-19 22:57:00 +0000 |
commit | dcb3fcb042612bfbb311a488379c65024bafd52b (patch) | |
tree | ce29b24ad433b8d8a4e0b450ca458bcde69a9a88 /miscutils | |
parent | c29684afd61b841c93517f378aaa1fd7750b038d (diff) | |
download | busybox-w32-dcb3fcb042612bfbb311a488379c65024bafd52b.tar.gz busybox-w32-dcb3fcb042612bfbb311a488379c65024bafd52b.tar.bz2 busybox-w32-dcb3fcb042612bfbb311a488379c65024bafd52b.zip |
libbb: config_read() update
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crond.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 154243c78..c7ee793a5 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -470,14 +470,12 @@ static void SynchronizeFile(const char *fileName) | |||
470 | pline = &file->cf_LineBase; | 470 | pline = &file->cf_LineBase; |
471 | 471 | ||
472 | while (--maxLines | 472 | while (--maxLines |
473 | && (n = config_read(parser, tokens, 6, 1, "# \t", PARSE_LAST_IS_GREEDY)) | 473 | && (n = config_read(parser, tokens, 6, 1, "# \t", PARSE_LAST_IS_GREEDY|PARSE_KEEP_COPY)) |
474 | ) { | 474 | ) { |
475 | CronLine *line; | 475 | CronLine *line; |
476 | 476 | ||
477 | USE_FEATURE_PARSE_COPY( | 477 | if (DebugOpt) |
478 | if (DebugOpt) | 478 | crondlog(LVL5 "user:%s entry:%s", fileName, parser->data); |
479 | crondlog(LVL5 "user:%s entry:%s", fileName, parser->data); | ||
480 | ) | ||
481 | 479 | ||
482 | /* check if line is setting MAILTO= */ | 480 | /* check if line is setting MAILTO= */ |
483 | if (0 == strncmp(tokens[0], "MAILTO=", 7)) { | 481 | if (0 == strncmp(tokens[0], "MAILTO=", 7)) { |