Summary: | incorrect handling of ungzipped .tgz archives | ||
---|---|---|---|
Product: | [Applications] ark | Reporter: | Krzysztof Ciebiera <ciebie> |
Component: | general | Assignee: | Helio Castro <helio> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.1.9 | ||
Target Milestone: | --- | ||
Platform: | Mandrake RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Krzysztof Ciebiera
2004-03-26 18:36:08 UTC
CVS commit by pinto: Never ever rely on the filename to determine whether the archive is compressed or not. CCMAIL: 78504-done@bugs.kde.org M +1 -1 tar.cpp 1.24.2.1 --- kdeutils/ark/tar.cpp #1.24:1.24.2.1 @@ -82,5 +82,5 @@ TarArch::TarArch( ArkSettings *_settings m_fileMimeType = _openAsMimeType; if ( m_fileMimeType.isNull() ) - m_fileMimeType = KMimeType::findByPath( _filename )->name(); + m_fileMimeType = KMimeType::findByFileContent( _filename )->name(); kdDebug(1601) << "TarArch::TarArch: mimetype is " << m_fileMimeType << endl; Hi there, I have a similiar problem with an tgz archive that works well with ark: http://users.xplornet.com/~bvdp/mma/mma-html-0.22.tar.gz won't open wih ARK (all other archives work here) Downloading the file, let me browse and extract the archive with mc. So there seems to be another standard. ark mma-html-0.22.tar.gz kio (KMimeType): WARNING: mimetype not valid '' (missing entry in the file ?) kio (KMimeType): WARNING: mimetype not valid '' (missing entry in the file ?) kparts: WARNING: StatusBarExtension::removeStatusBarItem. Widget not found : [KPushButton pointer (0x8105658) to widget CancelButton, geometry=100x30+0+0] knoppix@localhost:/tmp$ KTar: WARNING: KTar: invalid TAR file. Header is: utio ark -v Qt: 3.3.6 KDE: 3.5.3 Ark: 2.6.3 Oops, I didn't see that this bug was closed. Shoul I reopen it or rather start a new thread? |