Преглед на файлове

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.
David Kalnischkies преди 12 години
родител
ревизия
21ba8115c8
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      apt-pkg/contrib/fileutl.cc

+ 0 - 1
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)
       {