Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367417 - sys-apps/file-5.07 does not recognize application/zip file
Summary: sys-apps/file-5.07 does not recognize application/zip file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 367813 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-15 17:35 UTC by Lubos Kolouch
Modified: 2011-05-21 13:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lubos Kolouch 2011-05-15 17:35:57 UTC
After updating sys-apps/file from 5.06 to 5.07 the zip files are no longer correctly recognized

Reproducible: Always

Steps to Reproduce:
1. file reporty.zip
2.
3.
Actual Results:  
reporty.zip: data

Expected Results:  
reporty.zip: Zip archive data, at least v2.0 to extract

Works OK with 5.06
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-05-15 17:42:36 UTC
Should propably get applied too, used also in Fedora Core:

http://projects.archlinux.org/svntogit/packages.git/tree/file/trunk/file-5.05-zip64.patch

Specific patch for this problem:

http://projects.archlinux.org/svntogit/packages.git/tree/file/trunk/file-5.07-zip-detect.patch
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-05-21 06:38:48 UTC
(In reply to comment #1)
> Should propably get applied too, used also in Fedora Core:
> 
> http://projects.archlinux.org/svntogit/packages.git/tree/file/trunk/file-5.05-zip64.patch

Left this out as it wasn't in upstream repo.

> Specific patch for this problem:
> 
> http://projects.archlinux.org/svntogit/packages.git/tree/file/trunk/file-5.07-zip-detect.patch

This was in upstream repo and applied as 5.07-r1 in tree now, should fix this bug

Upstream pointed to this commit from mailing list:

http://github.com/glensc/file/commit/e990dc53f658cb67ec7b33c32e0bc24e65801792#magic/Magdir/archive
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2011-05-21 11:57:15 UTC
*** Bug 367813 has been marked as a duplicate of this bug. ***
Comment 4 Lubos Kolouch 2011-05-21 13:41:03 UTC
Yes, it works indeed as it should, thank you