← Commit list

e9c8bed4d

Sergey Naumov
Sergey Naumov
2011-04-16
FAILED Duration: 227s

Subject

syslogd: small fix to config patch

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

sysklogd/syslogd.c+9 -3
@@ -385,9 +385,15 @@ static void parse_syslogdcfg(const char *file)
cur_selector = next_selector;
} while (cur_selector);
- /* check whether current file name was mentioned in previous rules.
- * temporarily use cur_rule as iterator, but *pp_rule still points to
- * currently processing rule entry.
+ /* check whether current file name was mentioned in previous rules or
+ * as global logfile (G.logFile).
+ */
+ if (strcmp(G.logFile.path, tok[1]) == 0) {
+ cur_rule->file = &G.logFile;
+ goto found;
+ }
+ /* temporarily use cur_rule as iterator, but *pp_rule still points
+ * to currently processing rule entry.
* NOTE: *pp_rule points to the current (and last in the list) rule.
*/
for (cur_rule = G.log_rules; cur_rule != *pp_rule; cur_rule = cur_rule->next) {