summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2018-12-04 16:31:07 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2018-12-04 16:34:26 +0100
commit37bdbe03d44975951d2518bb9b3d3636081dca6a (patch)
tree37f26312415cb8a9acd73d1edeab81c3e0b282fc /apt-pkg/contrib
parentb9d405d4074bb1de10e869038fe9685bf660fd16 (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')
-rw-r--r--apt-pkg/contrib/fileutl.h1
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);