From: Michael Vogt Date: Thu, 19 Apr 2012 09:12:07 +0000 (+0200) Subject: releasing version 0.8.16~exp12ubuntu9 X-Git-Tag: 0.9.13.exp1ubuntu1~81 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/c0df8a6255d0a23651fe6d0b8933b1a72dd97d4f?ds=inline releasing version 0.8.16~exp12ubuntu9 --- diff --git a/apt-inst/contrib/extracttar.cc b/apt-inst/contrib/extracttar.cc index 12919a7cd..806ba796d 100644 --- a/apt-inst/contrib/extracttar.cc +++ b/apt-inst/contrib/extracttar.cc @@ -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; } diff --git a/debian/changelog b/debian/changelog index 2b486330a..297fbdd7b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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)