]> git.saurik.com Git - apt.git/commitdiff
merged from donkult
authorMichael Vogt <mvo@debian.org>
Thu, 28 Oct 2010 19:19:57 +0000 (21:19 +0200)
committerMichael Vogt <mvo@debian.org>
Thu, 28 Oct 2010 19:19:57 +0000 (21:19 +0200)
apt-pkg/deb/dpkgpm.cc
debian/changelog

index 395c3fb1aed6da42338b556fa99688a31ef645bc..9f0da3be61a3c695b0242244cfb65326a638981e 100644 (file)
@@ -660,6 +660,7 @@ bool pkgDPkgPM::OpenLog()
       if (term_out == NULL)
         return _error->WarningE("OpenLog", _("Could not open file '%s'"), logfile_name.c_str());
       setvbuf(term_out, NULL, _IONBF, 0);
+      SetCloseExec(fileno(term_out), true);
       chmod(logfile_name.c_str(), 0600);
       fprintf(term_out, "\nLog started: %s\n", timestr);
    }
index 8ca3e164acb11d63f9a1619121eeb3237907e0b4..437ded36555e90c720a67389ee6b43495095f43c 100644 (file)
@@ -29,6 +29,9 @@ apt (0.8.7) unstable; urgency=low
   * apt-pkg/deb/debsystem.cc:
     - fix issues with dir::state::status and dir::state::extended_states
       when alternative rootdirs are used
+  * apt-pkg/deb/dpkgpm.cc:
+    - ensure that history.log gets closed to avoid leaking a FD
+      (closes: #601649)
 
   [ Martin Pitt ]
   * apt-pkg/deb/debindexfile.cc: