Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534238 - sys-apps/file-5.21 misidentifies PDF file as partition
Summary: sys-apps/file-5.21 misidentifies PDF file as partition
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: REGRESSION
: 534234 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-01 20:00 UTC by Ulrich Müller
Modified: 2015-01-28 21:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Revert a change between 5.20 and 5.21 (file-5.21-filesystems.diff,695 bytes, patch)
2015-01-01 21:49 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2015-01-01 20:00:18 UTC
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
Comment 1 Ulrich Müller gentoo-dev 2015-01-01 21:49:53 UTC
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.
Comment 2 Ulrich Müller gentoo-dev 2015-01-02 10:22:27 UTC
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
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-01-03 14:23:32 UTC
+*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:~>
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2015-01-17 17:29:21 UTC
*** Bug 534234 has been marked as a duplicate of this bug. ***