diff options
author | Natrio | 2015-06-15 14:22:46 +0300 |
---|---|---|
committer | Natrio | 2015-06-15 14:22:46 +0300 |
commit | 8ef8f2a02f4bcb9b5a1334c2f7cc24193e0d95f4 (patch) | |
tree | 4ce578cd61b7b3ba864e0283e4087a1b06442fb2 /02-dumpfile.patch | |
download | aur-8ef8f2a02f4bcb9b5a1334c2f7cc24193e0d95f4.tar.gz |
Initial import
Diffstat (limited to '02-dumpfile.patch')
-rw-r--r-- | 02-dumpfile.patch | 20 |
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 |