Bug#491146: mis-identifies PNG files

2008-07-26 Thread Torbj|rn Andersson

Miles Bader wrote:


file reports PNG (image) files as "data", even though there's an entry
in /usr/share/file/magic for PNG files, and the entry appears to be
correct.


I noticed that, too. It seems to have something to do with the code in 
softmagic.c that is there to "Null terminate and eat *trailing* return". 
The PNG magic pattern ends with a 0x0a, which gets eaten.


But I'm not familiar enough with this code to propose a bugfix.
 _
Torbjorn Andersson




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#491146: mis-identifies PNG files

2008-07-16 Thread Miles Bader
Package: file
Version: 4.25-1
Severity: normal



file reports PNG (image) files as "data", even though there's an entry
in /usr/share/file/magic for PNG files, and the entry appears to be
correct.

For instance:

   $ /usr/bin/file /usr/lib/python2.5/doc/html/icons/contents.png
   /usr/lib/python2.5/doc/html/icons/contents.png: data

It does the same thing for every PNG file I've tried.

-Miles


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages file depends on:
ii  libc6  2.7-12GNU C Library: Shared libraries
ii  libmagic1  4.25-1File type determination library us
ii  zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime

file recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]