diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2018-12-04 16:31:07 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2018-12-04 16:34:26 +0100 |
commit | 37bdbe03d44975951d2518bb9b3d3636081dca6a (patch) | |
tree | 37f26312415cb8a9acd73d1edeab81c3e0b282fc /apt-pkg/contrib/fileutl.h | |
parent | b9d405d4074bb1de10e869038fe9685bf660fd16 (diff) |
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.
Diffstat (limited to 'apt-pkg/contrib/fileutl.h')
-rw-r--r-- | apt-pkg/contrib/fileutl.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |