View Issue Details

IDProjectCategoryView StatusLast Update
0000341fileGeneralpublic2022-04-25 17:34
Reporterblacktav Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityhave not tried
Status feedbackResolutionopen 
Product Version5.41 
Summary0000341: "file -z" breaks on zipped files with "Bad system call"
DescriptionWhen testing a zip archive, "file" breaks reporting "Bad system call"

Testing a dump from Google Photos
$ file Photos-001.zip
Photos-001.zip: Zip archive data, at least v2.0 to extract, compression method=deflate

$ file -z Photos-001.zip
Photos-001.zip: Bad system call

Testing a zip archive
$ file mc-test-pass.zip
mc-test-pass.zip: Zip archive data, at least v1.0 to extract, compression method=store

$ file -z mc-test-pass.zip
mc-test-pass.zip: Bad system call

OS is ArchLinux
Steps To Reproduce1. download a bundle from Google Photos
2. test download with "file -z <filename>"

or

1. create an archive using zip (Zip 3.0 (July 5th 2008), by Info-ZIP)
2. test download with "file -z <filename>"
Additional Information$ file --version
file-5.41
magic file from /usr/share/file/misc/magic
seccomp support included
TagsNo tags attached.

Activities

blacktav

2022-04-23 11:00

reporter  

mc-test-pass.zip (16,836 bytes)

blacktav

2022-04-23 11:10

reporter   ~0003736

Sorry, inappropriate report
Solution being to use -S switch as in "file -S -z <filename>"

Maybe the error response could be more useful though

christos

2022-04-25 17:34

manager   ~0003741

Yes, we could install a bad system call handler, but it is ugly. I prefer to leave it as is.

Issue History

Date Modified Username Field Change
2022-04-23 11:00 blacktav New Issue
2022-04-23 11:00 blacktav File Added: mc-test-pass.zip
2022-04-23 11:10 blacktav Note Added: 0003736
2022-04-25 17:34 christos Assigned To => christos
2022-04-25 17:34 christos Status new => assigned
2022-04-25 17:34 christos Status assigned => feedback
2022-04-25 17:34 christos Note Added: 0003741