diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-10-29 10:37:35 -0400 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-10-29 10:37:35 -0400 |
commit | 0e1945c14bee88013ad03c3b58e088c704f7ffa9 (patch) | |
tree | f5fc881fe41d66b4831dc9aad6a61b8a5f48b178 /apt-pkg/deb | |
parent | 8a91e5e7a018648178dc2bc399187496734a0639 (diff) | |
parent | 71626337ad5fe00a5f9b753829445084e8f5e790 (diff) |
merged from debian
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 1 |
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); } |