Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779679 - sys-apps/file-5.39 using -z switch results with Bad system call
Summary: sys-apps/file-5.39 using -z switch results with Bad system call
Status: RESOLVED DUPLICATE of bug 776988
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-01 08:31 UTC by Roman 'gryf' Dobosz
Modified: 2021-04-01 10:56 UTC (History)
0 users

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 Roman 'gryf' Dobosz 2021-04-01 08:31:01 UTC
After upgrading sys-apps/file from version 5.37-r1 to 5.39-r4, turns out that using -z switch, it gives "Bad system call" error message with certain file types:

gryf@spasm ~ $ file -z /usr/portage/distfiles/sqlite-src-3340100.zip 
/usr/portage/distfiles/sqlite-src-3340100.zip: Bad system call

and exit code is set to 159.

while on version 5.37-r1:

gryf@combustion ~ $ file -z /usr/portage/distfiles/sqlite-src-3340100.zip 
/usr/portage/distfiles/sqlite-src-3340100.zip: ERROR:[gzip: Stdin has more than one entry--rest ignored] (Zip archive data, at least v1.0 to extract)

Exit code is 0 in that case.

I've checked some other archives (tar.gz, tar.bz2, tar.xz, 7z, rar, lha), and same error I've got for XZ compressed tar archives.

That changed behavior will break zip handling on app-misc/mc.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-04-01 08:47:06 UTC
Most likely a duplicate of bug #776988
Comment 2 Roman 'gryf' Dobosz 2021-04-01 10:56:59 UTC
Oh, yeah. That's the same issue. Sorry for the noise.

*** This bug has been marked as a duplicate of bug 776988 ***