From 898d53aca8fb26f3861d0efa4d5bef8adb620a7c Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Mon, 31 Jul 2017 22:47:58 +0200 Subject: don't keep configuration files open needlessly Regression-Of: 3317ad864c997f4897756c0a2989c4199e9cda62 --- apt-pkg/contrib/fileutl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-pkg') 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; -- cgit v1.2.3