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

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kio/kio
From:       David Faure <faure () kde ! org>
Date:       2006-07-22 5:42:10
Message-ID: 1153546930.880523.8557.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 565016 by dfaure:

Apply patch by Robert Hogan <robert roberthogan net> to fix untarring of the 'dante' \
tarball (whatever that is).


 M  +4 -1      ktar.cpp  


--- branches/KDE/3.5/kdelibs/kio/kio/ktar.cpp #565015:565016
@@ -193,7 +193,10 @@
 
       // only compare those of the 6 checksum digits that mean something,
       // because the other digits are filled with all sorts of different chars by \
                different tars ...
-      if( strncmp( buffer + 148 + 6 - s.length(), s.data(), s.length() ) ) {
+      // Some tars right-justify the checksum so it could start in one of three \
places - we have to check each. +      if( strncmp( buffer + 148 + 6 - s.length(), \
s.data(), s.length() ) +        && strncmp( buffer + 148 + 7 - s.length(), s.data(), \
s.length() ) +        && strncmp( buffer + 148 + 8 - s.length(), s.data(), s.length() \
                ) ) {
         kdWarning(7041) << "KTar: invalid TAR file. Header is: " << QCString( \
buffer+257, 5 ) << endl;  return -1;
       }


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

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