]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Use ConfValIsTrue for parseing util-logfile append value. 2058/head
authormaxtors <moe.andreas@gmail.com>
Thu, 5 May 2016 09:12:22 +0000 (11:12 +0200)
committermaxtors <moe.andreas@gmail.com>
Thu, 5 May 2016 09:13:27 +0000 (11:13 +0200)
src/util-logopenfile.c

index 04173d48f1eff93afdf7e7da0a8f0954519d03af..63cc05acbb7c120e8dab8caa1c409be6679de5d2 100644 (file)
@@ -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");