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 Zip archive data, at least v2.0 to extract, compression method=deflate

$ file -z Bad system call

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

$ file -z Bad system call

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


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
magic file from /usr/share/file/misc/magic
seccomp support included
TagsNo tags attached.



2022-04-23 11:00

reporter (16,836 bytes)


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


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:
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