Commit 0e8f5110 authored by Julian Andres Klode's avatar Julian Andres Klode

python/arfile.cc: Fix FTBFS due to copying of FileFd

FileFd was not supposed to be copyable, but accidentally was,
which worked fine here, but caused crashes elsewhere, so the
implicit copy constructor was explicitly deleted recently, causing
this to FTBFS.
parent 873f5069
......@@ -321,7 +321,7 @@ static PyObject *ararchive_gettar(PyArArchiveObject *self, PyObject *args)
}
PyTarFileObject *tarfile = (PyTarFileObject*)CppPyObject_NEW<ExtractTar*>(self,&PyTarFile_Type);
new (&tarfile->Fd) FileFd(self->Fd);
new (&tarfile->Fd) FileFd(self->Fd.Fd());
tarfile->min = member->Start;
tarfile->Object = new ExtractTar(self->Fd, member->Size, comp);
return HandleErrors(tarfile);
......@@ -530,7 +530,7 @@ static PyObject *_gettar(PyDebFileObject *self, const ARArchive::Member *m,
if (!m)
return 0;
PyTarFileObject *tarfile = (PyTarFileObject*)CppPyObject_NEW<ExtractTar*>(self,&PyTarFile_Type);
new (&tarfile->Fd) FileFd(self->Fd);
new (&tarfile->Fd) FileFd(self->Fd.Fd());
tarfile->min = m->Start;
tarfile->Object = new ExtractTar(self->Fd, m->Size, comp);
return tarfile;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment