Package: file Version: 4.15-2 Severity: important -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Providing magic files list via -m option or MAGIC environment variable does not work in combination with -i option in version 4.15-2. This did work in older versions. I can prove this with version 4.12-1: Test directory is /tmp/file: 0 pit:/tmp/file$ ls -Altr total 584 -rw-r--r-- 1 grfz grfz 232720 2004-12-06 12:17 libmagic1_4.12-1_i386.deb -rw-r--r-- 1 grfz grfz 28568 2004-12-06 12:17 file_4.12-1_i386.deb -rw-r--r-- 1 grfz grfz 259404 2005-10-14 16:47 libmagic1_4.15-2_i386.deb -rw-r--r-- 1 grfz grfz 30316 2005-10-14 16:47 file_4.15-2_i386.deb -rw------- 1 grfz grfz 23040 2005-10-27 23:05 ms-word-file.doc downgrade to version 4.12-1: 0 pit:/tmp/file$ sudo dpkg -i libmagic1_4.12-1_i386.deb file_4.12-1_i386.deb dpkg - warning: downgrading libmagic1 from 4.15-2 to 4.12-1. (Reading database ... 138223 files and directories currently installed.) Preparing to replace libmagic1 4.15-2 (using libmagic1_4.12-1_i386.deb) ... Unpacking replacement libmagic1 ... Preparing to replace file 4.12-1 (using file_4.12-1_i386.deb) ... Unpacking replacement file ... Setting up libmagic1 (4.12-1) ... Setting up file (4.12-1) ... test file version 4.12-1 with options -i and -m: 0 pit:/tmp/file$ file -m ~/.magic:~/.mutt/.magic:/etc/magic:/usr/share/misc/file/magic -bi ms-word-file.doc application/msword - --> version 4.12-1 worked o.k. with options -m and -i. Now install new version 4.15-2: 0 pit:/tmp/file$ sudo dpkg -i libmagic1_4.15-2_i386.deb file_4.15-2_i386.deb (Reading database ... 138222 files and directories currently installed.) Preparing to replace libmagic1 4.12-1 (using libmagic1_4.15-2_i386.deb) ... Unpacking replacement libmagic1 ... Preparing to replace file 4.12-1 (using file_4.15-2_i386.deb) ... Unpacking replacement file ... Setting up libmagic1 (4.15-2) ... Setting up file (4.15-2) ... test file version 4.15-2 with options -i and -m or MAGIC environment variable: 0 pit:/tmp/file$ file -m ~/.magic:~/.mutt/.magic:/etc/magic:/usr/share/misc/file/magic -bi ms-word-file.doc file: could not find any magic files! 1 pit:/tmp/file$ MAGIC=/etc/magic file -bi ms-word-file.doc file: could not find any magic files! - --> file version 4.15-2 gives error code 1 with options -m and -i or MAGIC environment variable. test file version 4.15-2 with option -i: 1 pit:/tmp/file$ file -bi ms-word-file.doc application/msword - --> file version 4.15-2 identifies correct and gives exit code 0 with option -i. test file version 4.15-2 with few cominations of magic files list and -i option and without -i option: 0 pit:/tmp/file$ MAGIC=/etc/magic file ms-word-file.doc ms-word-file.doc: application/msword 0 pit:/tmp/file$ MAGIC=/etc/magic file -i ms-word-file.doc file: could not find any magic files! 1 pit:/tmp/file$ MAGIC=/etc/magic file -b ms-word-file.doc application/msword 0 pit:/tmp/file$ - --> option -m does not work when used in combination with option -i. I'll downgrade file until this bug is solved since my mail handling relys heavily on file (1). HTH, Gregor - -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.13.4 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages file depends on: ii libc6 2.3.5-7 GNU C Library: Shared libraries an ii libmagic1 4.15-2 File type determination library us ii zlib1g 1:1.2.3-6 compression library - runtime file recommends no packages. - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDYU6H8uuCWtJTB8oRAsVtAJ9ibU+mrvu2MYe5m/pBT04nKBxGzACfTF3o gXFxPrDCtxsH/kHFt/qtH2E= =L8mO -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]