Package: ntopng / 1.2.1+dfsg1-1.1

log-filename.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Use proper log dir.
Author: Ludovico Cavedon <cavedon@debian.org>

Index: ntopng/Prefs.cpp
===================================================================
--- ntopng.orig/Prefs.cpp
+++ ntopng/Prefs.cpp
@@ -541,7 +541,7 @@ int Prefs::checkOptions() {
     {
       char path[MAX_PATH];
       ntop_mkdir(data_dir, 0777);
-      snprintf(path, sizeof(path), "%s/ntopng.log", ntop->get_working_dir() /* "C:\\Windows\\Temp" */);
+      snprintf(path, sizeof(path), "%s/ntopng.log", "/var/log/ntopng");
       ntop->fixPath(path);
       logFd = fopen(path, "w");
       if(logFd)