From 37bdbe03d44975951d2518bb9b3d3636081dca6a Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 4 Dec 2018 16:31:07 +0100 Subject: Override FileFd copy constructor to prevent copying FileFd could be copied using the default copy constructor, which does not work, and then causes code to crash. --- apt-pkg/contrib/fileutl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'apt-pkg') diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h index 46a87a4e2..c7927951f 100644 --- a/apt-pkg/contrib/fileutl.h +++ b/apt-pkg/contrib/fileutl.h @@ -183,6 +183,7 @@ class FileFd private: FileFdPrivate * d; + APT_HIDDEN FileFd(const FileFd &); APT_HIDDEN FileFd & operator=(const FileFd &); APT_HIDDEN bool OpenInternDescriptor(unsigned int const Mode, APT::Configuration::Compressor const &compressor); -- cgit v1.2.3