From dcb3fcb042612bfbb311a488379c65024bafd52b Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 19 Jul 2008 22:57:00 +0000 Subject: libbb: config_read() update --- miscutils/crond.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'miscutils') diff --git a/miscutils/crond.c b/miscutils/crond.c index 154243c..c7ee793 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -470,14 +470,12 @@ static void SynchronizeFile(const char *fileName) pline = &file->cf_LineBase; while (--maxLines - && (n = config_read(parser, tokens, 6, 1, "# \t", PARSE_LAST_IS_GREEDY)) + && (n = config_read(parser, tokens, 6, 1, "# \t", PARSE_LAST_IS_GREEDY|PARSE_KEEP_COPY)) ) { CronLine *line; - USE_FEATURE_PARSE_COPY( - if (DebugOpt) - crondlog(LVL5 "user:%s entry:%s", fileName, parser->data); - ) + if (DebugOpt) + crondlog(LVL5 "user:%s entry:%s", fileName, parser->data); /* check if line is setting MAILTO= */ if (0 == strncmp(tokens[0], "MAILTO=", 7)) { -- cgit v1.1