* apt-inst/contrib/extracttar.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 2 Aug 2007 09:56:54 +0000 (11:56 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 2 Aug 2007 09:56:54 +0000 (11:56 +0200)
  - fix fd leak for zero size files

apt-inst/contrib/extracttar.cc
debian/changelog

index 8a535967f282eedd2892340deede5f77ebab12a3..68c871a5daff23d592f12da559b59eb8d062d53c 100644 (file)
@@ -332,7 +332,7 @@ bool ExtractTar::Go(pkgDirStream &Stream)
       }
       
       // And finish up
-      if (Itm.Size != 0 && BadRecord == false)
+      if (Itm.Size >= 0 && BadRecord == false)
         if (Stream.FinishedFile(Itm,Fd) == false)
            return false;
       
index 873df16935776031e8cdd2cdc90417e3e9086305..d7f844f5c3a320ffb100a3ab342617beedf2805d 100644 (file)
@@ -1,3 +1,10 @@
+apt (0.7.7) UNRELEASED; urgency=low
+
+  * apt-inst/contrib/extracttar.cc:
+    - fix fd leak for zero size files 
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 02 Aug 2007 11:55:54 +0200
+
 apt (0.7.6) unstable; urgency=low
 
   * Applied patch from Aurelien Jarno <aurel32@debian.org> to fix wrong