summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-04-11 11:18:58 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-04-23 11:59:09 +0200
commita40c6649b99814c7d30964accdd5ecc4f1ce369a (patch)
tree02c82f80385833974d8448e5fb932b8a21a7a994 /apt-pkg
parentcaf69a2be249e958e23f00047c93596af1041861 (diff)
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.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/fileutl.cc1
1 files changed, 0 insertions, 1 deletions
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)
{