summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2017-07-31 22:47:58 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2017-08-04 13:06:10 +0200
commit898d53aca8fb26f3861d0efa4d5bef8adb620a7c (patch)
treed7343e276ccbd97cb1342c348ee0f1e2afd4b4e3 /apt-pkg
parentd108e019d3ca74c31a1ab646ddef5c60744a5e7d (diff)
downloadapt-898d53aca8fb26f3861d0efa4d5bef8adb620a7c.tar.gz
don't keep configuration files open needlessly
Regression-Of: 3317ad864c997f4897756c0a2989c4199e9cda62
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/fileutl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 33f4f7e09..72813f4c3 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -3133,7 +3133,7 @@ bool OpenConfigurationFileFd(std::string const &File, FileFd &Fd) /*{{{*/
if (fd == -1)
return _error->WarningE("open", _("Unable to read %s"), File.c_str());
APT::Configuration::Compressor none(".", "", "", nullptr, nullptr, 0);
- if (Fd.OpenDescriptor(fd, FileFd::ReadOnly, none) == false)
+ if (Fd.OpenDescriptor(fd, FileFd::ReadOnly, none, true) == false)
return false;
Fd.SetFileName(File);
return true;