summarylogtreecommitdiffstats
path: root/02-dumpfile.patch
diff options
context:
space:
mode:
authorNatrio2015-06-15 14:22:46 +0300
committerNatrio2015-06-15 14:22:46 +0300
commit8ef8f2a02f4bcb9b5a1334c2f7cc24193e0d95f4 (patch)
tree4ce578cd61b7b3ba864e0283e4087a1b06442fb2 /02-dumpfile.patch
downloadaur-8ef8f2a02f4bcb9b5a1334c2f7cc24193e0d95f4.tar.gz
Initial import
Diffstat (limited to '02-dumpfile.patch')
-rw-r--r--02-dumpfile.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/02-dumpfile.patch b/02-dumpfile.patch
new file mode 100644
index 000000000000..5db3e9ba2396
--- /dev/null
+++ b/02-dumpfile.patch
@@ -0,0 +1,20 @@
+02-dumpfile.patch by Martín Ferrari <martin.ferrari@gmail.com>
+
+http://sourceforge.net/support/tracker.php?aid=1744569
+
+ Patch to add an extension to dump files, so they can be managed by
+ logrotate
+
+Index: vtun-3.0.3/linkfd.c
+===================================================================
+--- vtun-3.0.3.orig/linkfd.c 2012-10-07 20:42:53.000000000 +0200
++++ vtun-3.0.3/linkfd.c 2012-10-07 20:43:26.289354719 +0200
+@@ -415,7 +415,7 @@
+ sa.sa_handler=sig_usr1;
+ sigaction(SIGUSR1,&sa,NULL);
+
+- sprintf(file,"%s/%.20s", VTUN_STAT_DIR, host->host);
++ sprintf(file,"%s/%.20s.dump", VTUN_STAT_DIR, host->host);
+ if( (host->stat.file=fopen(file, "a")) ){
+ setvbuf(host->stat.file, NULL, _IOLBF, 0);
+ } else