[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: kdelibs/kio/kio
From:       Andras Mantia <amantia () virtualartisans ! com>
Date:       2002-12-13 14:03:56
[Download RAW message or body]

Hi,

 Can you redo this patch, please? Something is really broken with that. See my 
post on kde-devel.

http://lists.kde.org/?l=kde-devel&m=103978309703457&w=2

Andras

On 2002. December 11., Wednesday 23:19, Laurence Anderson wrote:
> CVS commit by landers:
>
> Fixed IO_ReadWrite
>
>
>   M +5 -0      ktar.cpp   1.58
>   M +1 -0      ktar.h   1.30
>
>
> --- kdelibs/kio/kio/ktar.cpp  #1.57:1.58
> @@ -328,4 +328,5 @@ bool KTar::openArchive( int mode )
>          {
>              //qDebug("Terminating. Read %d bytes, first one is %d", n,
> buffer[0]); +            m_tarEnd = dev->at() - n; // Remember end of
> archive
>              ende = true;
>          }
> @@ -366,4 +367,5 @@ bool KTar::writeDir( const QString& name
>      char buffer[ 0x201 ];
>      memset( buffer, 0, 0x200 );
> +    device()->at(m_tarEnd); // Go to end of archive as might have moved
> with a read
>
>      // If more than 100 chars, we need to use the LongLink trick
> @@ -390,4 +392,5 @@ bool KTar::writeDir( const QString& name
>      // Write header
>      device()->writeBlock( buffer, 0x200 );
> +    m_tarEnd = device()->at();
>
>      d->dirList.append( dirName ); // contains trailing slash
> @@ -433,4 +436,5 @@ bool KTar::prepareWriting( const QString
>      char buffer[ 0x201 ];
>      memset( buffer, 0, 0x200 );
> +    device()->at(m_tarEnd); // Go to end of archive as might have moved
> with a read
>
>      // If more than 100 chars, we need to use the LongLink trick
> @@ -464,4 +468,5 @@ bool KTar::doneWriting( uint size )
>      // Write alignment
>      int rest = size % 0x200;
> +    m_tarEnd = device()->at() + (0x200 - rest); // Record our new end of
> archive if ( rest )
>      {
>
> --- kdelibs/kio/kio/ktar.h  #1.29:1.30
> @@ -110,4 +110,5 @@ private:
>
>      QString m_filename;
> +    int m_tarEnd;
>  protected:
>      virtual void virtual_hook( int id, void* data );

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic