From: David Kalnischkies Date: Fri, 11 Apr 2014 09:18:58 +0000 (+0200) Subject: don't double-count seeks in FileFd::Skip for bzip/xz X-Git-Tag: 1.0.2~12 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/21ba8115c873ae4085770e4bf0bed765e0e099a6 don't double-count seeks in FileFd::Skip for bzip/xz FileFd::Read already deals with the increase of the skipposition so that we as the caller in FileFd::Skip really shouldn't increase it, too. --- diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index 69a675648..c51f75984 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -1712,7 +1712,6 @@ bool FileFd::Skip(unsigned long long Over) { if (d != NULL && (d->pipe == true || d->InternalStream() == true)) { - d->seekpos += Over; char buffer[1024]; while (Over != 0) {