summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-04-11 11:18:58 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2014-04-11 11:18:58 +0200
commit21ba8115c873ae4085770e4bf0bed765e0e099a6 (patch)
tree844b308768d0fb2d72291c9d3f5ec39518f61ac0 /apt-pkg/contrib
parent8056a00cd76c0f9dd6c444f23aa9998f96f805ed (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/contrib')
-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)
{