From bf551ace4ef2e5a116184f0e77d17e6b10b0535c Mon Sep 17 00:00:00 2001 From: maxtors Date: Thu, 5 May 2016 11:12:22 +0200 Subject: [PATCH] Use ConfValIsTrue for parseing util-logfile append value. --- src/util-logopenfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-logopenfile.c b/src/util-logopenfile.c index 04173d48f1..63cc05acbb 100644 --- a/src/util-logopenfile.c +++ b/src/util-logopenfile.c @@ -172,7 +172,7 @@ SCLogOpenFileFp(const char *path, const char *append_setting) { FILE *ret = NULL; - if (strcasecmp(append_setting, "yes") == 0) { + if (ConfValIsTrue(append_setting)) { ret = fopen(path, "a"); } else { ret = fopen(path, "w"); -- 2.47.2