~ubuntu-branches/ubuntu/wily/ntopng/wily

« back to all changes in this revision

Viewing changes to debian/patches/log-filename.patch

  • Committer: Package Import Robot
  • Author(s): Ludovico Cavedon
  • Date: 2014-04-13 16:25:14 UTC
  • Revision ID: package-import@ubuntu.com-20140413162514-yk9y9zb3r06asan3
Tags: 1.1+dfsg2-1
* Initial upload (Closes: #714820).
* Remove unsed files without source from orig tarball.
* Minify jquery and boostrap during build process.
* Include missing sources for minified javascript. Use system libjs-rickshaw.
* Fix lintian missing-source warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Use proper log dir.
 
2
Author: Ludovico Cavedon <cavedon@debian.org>
 
3
 
 
4
Index: ntopng/Prefs.cpp
 
5
===================================================================
 
6
--- ntopng.orig/Prefs.cpp       2013-11-17 13:44:04.379686666 -0800
 
7
+++ ntopng/Prefs.cpp    2013-11-17 13:45:02.427684074 -0800
 
8
@@ -399,7 +399,7 @@
 
9
     char path[MAX_PATH];
 
10
 
 
11
     ntop_mkdir(data_dir, 0777);
 
12
-    snprintf(path, sizeof(path), "%s/ntopng.log", "C:\\Windows\\Temp" /* ntop->get_working_dir() */);
 
13
+    snprintf(path, sizeof(path), "%s/ntopng.log", "/var/log/ntopng");
 
14
     ntop->fixPath(path);
 
15
     logFd = fopen(path, "w");
 
16
        if(logFd)