Commit 6d3be85b authored by dhchen's avatar dhchen

Fix judgement since #r and #s must be exist once in archive path

parent 8463ede5
...@@ -795,7 +795,7 @@ zlog_rule_t *zlog_rule_new(char *line, ...@@ -795,7 +795,7 @@ zlog_rule_t *zlog_rule_new(char *line,
} }
p = strchr(a_rule->archive_path, '#'); p = strchr(a_rule->archive_path, '#');
if ( (p == NULL) || ((strchr(p, 'r') == NULL) || (strchr(p, 's') == NULL))) { if ( (p == NULL) || ((strchr(p, 'r') == NULL) && (strchr(p, 's') == NULL))) {
zc_error("archive_path must contain #r or #s"); zc_error("archive_path must contain #r or #s");
goto err; goto err;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment