View Issue Details

IDProjectCategoryView StatusLast Update
0000659fileGeneralpublic2025-05-21 05:58
ReporterPitzl Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version5.46 
Summary0000659: file -i reports broken MIME type 'application/x-dosexecapplication/zip' on self-extracting ZIP
DescriptionHi!

When calling file -i (or using libmagic via Perl bindings), for a faked self-extracting ZIP file 'application/x-dosexecapplication/zip' is returned as MIME type which is broken.
Steps To ReproduceJust call file -i on the provided sample file.
TagsNo tags attached.

Activities

Pitzl

2025-05-20 08:58

reporter   ~0004226

Sorry, file upload failed somehow on first try.
fake_selfextracting_zip (50 bytes)   
MZ�SN��L
�R1PKLITE Copr. 1990-92
fake_selfextracting_zip (50 bytes)   

jsummers

2025-05-20 17:35

reporter   ~0004227

Mainly to the devs:

I don't know what's supposed to happen if two MIME annotations apply to the same file. In most cases, the first one seems to win. But there's a quirk that if the MIME type is first set in a "name" routine, then set again back in the main pattern, the two MIME types get concatenated together. Seems like a bug to me, but if not, then the only problem is with the pattern definition, which is very complex.

Pitzl

2025-05-21 05:58

reporter   ~0004228

I don't know what to do either. Old verfsions (5.45) just returned the application/zip MIME type.
This bug must be something which came in with changes in version 5.46.

Issue History

Date Modified Username Field Change
2025-05-20 08:56 Pitzl New Issue
2025-05-20 08:58 Pitzl Note Added: 0004226
2025-05-20 08:58 Pitzl File Added: fake_selfextracting_zip
2025-05-20 17:35 jsummers Note Added: 0004227
2025-05-21 05:58 Pitzl Note Added: 0004228