From: maxtors Date: Thu, 5 May 2016 09:12:22 +0000 (+0200) Subject: Use ConfValIsTrue for parseing util-logfile append value. X-Git-Tag: suricata-3.1RC1~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf551ace4ef2e5a116184f0e77d17e6b10b0535c;p=thirdparty%2Fsuricata.git Use ConfValIsTrue for parseing util-logfile append value. --- 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");