summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-10-29 10:37:35 -0400
committerMichael Vogt <michael.vogt@ubuntu.com>2010-10-29 10:37:35 -0400
commit0e1945c14bee88013ad03c3b58e088c704f7ffa9 (patch)
treef5fc881fe41d66b4831dc9aad6a61b8a5f48b178 /apt-pkg/deb
parent8a91e5e7a018648178dc2bc399187496734a0639 (diff)
parent71626337ad5fe00a5f9b753829445084e8f5e790 (diff)
merged from debian
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r--apt-pkg/deb/dpkgpm.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 0d4a52c2f..79bea85fe 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -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);
}