actual patch to fix http://forums.zmanda.com/showthread.php?t=2540
authorMatthias Förste foerste@schlittermann.de
Thu, 18 Aug 2011 10:28:51 +0200
changeset 22 38109e66fa66
parent 21 a323d8961954
child 23 a3e2e98ad7fd
actual patch to fix http://forums.zmanda.com/showthread.php?t=2540
amanda/README
amanda/close-split-diskbuffer-file.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/amanda/README	Thu Aug 18 10:28:51 2011 +0200
@@ -0,0 +1,5 @@
+$ apt-get source amanda-server/squeeze
+$ cd amanda-2.6.1p*
+$ patch -p0 <<path-to>/close-split-diskbuffer-file.patch
+$ dch
+$ $FAVOURITE-PACKAGE-BUILDER
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/amanda/close-split-diskbuffer-file.patch	Thu Aug 18 10:28:51 2011 +0200
@@ -0,0 +1,14 @@
+Index: server-src/taper-disk-port-source.c
+===================================================================
+--- server-src/taper-disk-port-source.c (revision 2169)
++++ server-src/taper-disk-port-source.c (working copy)
+@@ -94,6 +94,9 @@
+     if(G_OBJECT_CLASS(parent_class)->finalize)
+         (* G_OBJECT_CLASS(parent_class)->finalize)(obj_self);
+ 
++    if (self->_priv->buffer_fd >= 0)
++       aclose(self->_priv->buffer_fd);
++
+     amfree(self->buffer_dir_name);
+     amfree(self->_priv->excess_buffer);
+     amfree(self->_priv);