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.
Most likely a duplicate of bug #776988
Oh, yeah. That's the same issue. Sorry for the noise. *** This bug has been marked as a duplicate of bug 776988 ***