Procházet zdrojové kódy

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 před 12 roky
rodič
revize
21ba8115c8
1 změnil soubory, kde provedl 0 přidání a 1 odebrání
  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))
    if (d != NULL && (d->pipe == true || d->InternalStream() == true))
    {
    {
-      d->seekpos += Over;
       char buffer[1024];
       char buffer[1024];
       while (Over != 0)
       while (Over != 0)
       {
       {