Subject: file exit code on non-existent files is 255 (or -1): it breaks at least amavisd-new Package: file Version: 4.12-1 Severity: normal
*** Please type your report below this line *** File 4.12 has a different behaviour than previous versions on non existent files: For example, file versione 4.07: [EMAIL PROTECTED]:~$ file -v file-4.07 magic data from /usr/share/misc/file/magic [EMAIL PROTECTED]:~$ file MISSINGFILE; echo $? MISSINGFILE: cannot open (MISSINGFILE) 0 And the latest version: fred:~# file -v file-4.12 magic data from /etc/magic:/usr/share/misc/file/magic fred:~# file MISSINGFILE; echo $? MISSINGFILE: ERROR: cannot open `MISSINGFILE' (No such file or directory) 255 Why the exit code is 255 and not 1, for example? The problem of this is that it seems to break at least amavisd-new, since it get a -1 exit code when, for example, file incorrectly recognizes ascii files beginning with BZ as bzip2 files. Kind regards, Luca -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.4.27-2-686-smp Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages file depends on: ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libmagic1 4.12-1 File type determination library us ii zlib1g 1:1.2.2-3 compression library - runtime -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

