With the PDF document from http://dev.gentoo.org/~ulm/pms/5/pms.pdf I get the following output with file-5.21: $ file pms.pdf pms.pdf: ; partition : ID=0x54, active 0x81, start-CHS (0x188,12,58), end-CHS (0x128,162,38), startsector 796152354, 598905848 sectors; partition : ID=0x20, active 0xa0, start-CHS (0x343,10,26), end-CHS (0x19,116,17), startsector 2434351983, 1188070769 sectors file-5.20-r1 still reported it correctly: $ file pms.pdf pms.pdf: PDF document, version 1.5
Created attachment 392904 [details, diff] Revert a change between 5.20 and 5.21 Attached patch fixes the problem for me. It reverts a change in magic/Magdir/filesystems that was applied between file-5.20 and file-5.21.
Seems that other file types than PDF are also affected, see this Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774219
+*file-5.22 (03 Jan 2015) + + 03 Jan 2015; Lars Wendler <polynomial-c@gentoo.org> +file-5.22.ebuild: + Version bump. + lars@breakmygentoo:~> rm temp/pms.pdf -v rm: cannot remove ‘temp/pms.pdf’: No such file or directory lars@breakmygentoo:~(1)> wget -q -P temp http://dev.gentoo.org/~ulm/pms/5/pms.pdf lars@breakmygentoo:~> file temp/pms.pdf temp/pms.pdf: PDF document, version 1.5 lars@breakmygentoo:~> file --version file-5.22 magic file from /usr/share/misc/magic lars@breakmygentoo:~>
*** Bug 534234 has been marked as a duplicate of this bug. ***