]> git.saurik.com Git - apt.git/commitdiff
releasing version 0.8.16~exp12ubuntu9
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 19 Apr 2012 09:12:07 +0000 (11:12 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 19 Apr 2012 09:12:07 +0000 (11:12 +0200)
apt-inst/contrib/extracttar.cc
debian/changelog

index 12919a7cd8bc9800fa6418cffb00a41e9e9671f3..806ba796d687833839b3f52020facfe68e40ce94 100644 (file)
@@ -146,7 +146,7 @@ bool ExtractTar::StartGzip()
    }
 
    // Fix up our FDs
-   InFd.Fd(Pipes[0]);
+   InFd.OpenDescriptor(Pipes[0], FileFd::ReadOnly, FileFd::None, true);
    close(Pipes[1]);
    return true;
 }
index 2b486330aac3529a90ebfa3ba7200d6369717505..297fbdd7be06d45bb662c49d923efd9f1030aac1 100644 (file)
@@ -1,3 +1,12 @@
+apt (0.8.16~exp12ubuntu9) precise; urgency=low
+
+  * apt-inst/contrib/extracttar.cc:
+    - ensure that in StartGzip the InFd is set to "AutoClose" to ensure
+      that the pipe is closed when InFd is closed. This fixes a Fd leak
+      (LP: #985452)
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 19 Apr 2012 10:53:30 +0200
+
 apt (0.8.16~exp12ubuntu8) precise; urgency=low
 
   * Set FD_CLOEXEC on history.log's FD (Closes: #610069, LP: #636010)