Commit c666a848 authored by Nico Golde's avatar Nico Golde Committed by Joao Eriberto Mota Filho

Imported Debian patch 1.0.1-7

parent 66e17822
tcpxtract (1.0.1-7) unstable; urgency=low
* Fix excessive sync by only fsync'ing the specific output
file (Closes: #623140).
* Bump policy version, no changes needed.
-- Nico Golde <nion@debian.org> Tue, 19 Apr 2011 16:10:43 +0200
tcpxtract (1.0.1-6) unstable; urgency=low
* Bump policy version, no changes needed.
......
......@@ -3,7 +3,7 @@ Section: net
Priority: optional
Maintainer: Nico Golde <nion@debian.org>
Build-Depends: debhelper (>= 7.0.0), autotools-dev, libpcap0.8-dev, flex, quilt
Standards-Version: 3.9.1
Standards-Version: 3.9.2
Homepage: http://tcpxtract.sf.net
Package: tcpxtract
......
From: Nico Golde <nion@debian.org>
Description: Remove version and upstream specific notes from manual page
diff -urNad tcpxtract-1.0.1~/tcpxtract.1 tcpxtract-1.0.1/tcpxtract.1
--- tcpxtract-1.0.1~/tcpxtract.1 2005-10-06 03:53:57.000000000 +0200
+++ tcpxtract-1.0.1/tcpxtract.1 2009-10-01 19:04:07.000000000 +0200
......
From: Nico Golde <nion@debian.org>
Bug: http://bugs.debian.org/623140
Description: remove excessive sync calls causing lots of disk activity and replace by fsync on closing the file.
Index: tcpxtract-1.0.1/extract.c
===================================================================
--- tcpxtract-1.0.1.orig/extract.c 2011-04-19 16:07:25.000000000 +0200
+++ tcpxtract-1.0.1/extract.c 2011-04-19 16:10:21.000000000 +0200
@@ -163,7 +163,6 @@
error("Quiting.");
}
elist->nwritten += nbytes;
- sync();
}
/* remove all finished extracts from the list */
@@ -182,6 +181,8 @@
eptr->next->prev = eptr->prev;
if (*elist == eptr)
*elist = eptr->next;
+
+ fsync(eptr->fd);
close(eptr->fd);
free(eptr);
}
01_fixmanpage.patch
tcpxtract-fix-segfault.patch
fix-excessive-sync.patch
From: Chow Loong Jin <hyperair@ubuntu.com>
Bug: http://bugs.debian.org/599746
Description: fix segfaults due to uninitialized variables
--- tcpxtract-1.0.1/sessionlist.c 2005-10-04 22:50:03.000000000 +0800
+++ tcpxtract-1.0.1-new/sessionlist.c 2010-10-11 03:14:18.071445668 +0800
@@ -62,6 +62,10 @@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment