Report forwarded to debian-bugs-dist@lists.debian.org, Nicolás Lichtmaier <nick@debian.org>:
Bug#38542; Package file.   debian-bugs-dist@lists.debian.orgNicolás Lichtmaier  Subject: Bug#38542: file: false positives Reply-To: Edward Betts , 38542@bugs.debian.org Resent-From: Edward Betts Orignal-Sender: Edward Betts Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Nicolás Lichtmaier Resent-Date: Sat, 29 May 1999 23:18:07 GMT Resent-Message-ID: Resent-Sender: iwj@debian.org X-Debian-PR-Message: report 38542 X-Debian-PR-Package: file X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by bugs@bugs.debian.org id=B.92801963913008 (code B ref -1); Sat, 29 May 1999 23:18:07 GMT Date: Sat, 29 May 1999 23:14:45 +0100 From: Edward Betts To: submit@bugs.debian.org Message-ID: <19990529231445.A2898@portaloo.> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Sender: Edward Betts Package: file Version: 3.27-1 Severity: Wishlist $ file /etc/* bootptab: C++ program text protocols: C++ program text wine.conf: Lisp/Scheme program text I could supply the files but they are all standard and would just fill up the Bug Tracking System. Here is the first six lines of each: ==> /etc/bootptab <== # /etc/bootptab: database for bootp server (/usr/sbin/bootpd) # # Blank lines and lines beginning with '#' are ignored. # # Legend: (see bootptab.5) # first field -- hostname (not indented) ==> /etc/protocols <== # /etc/protocols: # $Id: protocols,v 1.1 1995/02/24 01:09:41 imurdock Exp $ # # Internet (IP) protocols # # from: @(#)protocols 5.1 (Berkeley) 4/17/89 ==> /etc/wine.conf <== ;; ;; MS-DOS drives configuration ;; ;; Each section has the following format: ;; [Drive X] ;; Path=xxx (Unix path for drive root) No clues there.   Acknowledgement sent to Edward Betts <edward@debian.org>:
New bug report received and forwarded. Copy sent to Nicolás Lichtmaier <nick@debian.org>.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Edward Betts Subject: Bug#38542: Acknowledgement (file: false positives) Message-ID: In-Reply-To: <19990529231445.A2898@portaloo.> References: <19990529231445.A2898@portaloo.> X-Debian-PR-Message: ack 38542 Thank you for the problem report you have sent regarding Debian. This is an automatically generated reply, to let you know your message has been received. It is being forwarded to the developers' mailing list for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Nicolás Lichtmaier If you wish to submit further information on your problem, please send it to 38542@bugs.debian.org (and *not* to bugs@bugs.debian.org). Please do not reply to the address at the top of this message, unless you wish to report a problem with the bug-tracking system. Ian Jackson (administrator, Debian bugs database)   Received: (at submit) by bugs.debian.org; 29 May 1999 23:13:59 +0000 Received: (qmail 13005 invoked from network); 29 May 1999 23:13:59 -0000 Received: from finch-post-10.mail.demon.net (194.217.242.38) by master.debian.org with SMTP; 29 May 1999 23:13:59 -0000 Received: from [158.152.142.74] (helo=smack.hairnet) by finch-post-10.mail.demon.net with esmtp (Exim 2.12 #1) id 10nsIf-000Gtz-0A for submit@bugs.debian.org; Sat, 29 May 1999 23:13:58 +0000 Received: from portaloo.hairnet [192.168.0.4] (mail) by smack.hairnet with esmtp (Exim 2.05 #1 (Debian)) id 10nrO8-0002AN-00; Sat, 29 May 1999 23:15:32 +0100 Received: from edward by portaloo.hairnet with local (Exim 3.01 #1 (Debian)) id 10nrNN-0000lM-00; Sat, 29 May 1999 23:14:45 +0100 Date: Sat, 29 May 1999 23:14:45 +0100 From: Edward Betts To: submit@bugs.debian.org Subject: file: false positives Message-ID: <19990529231445.A2898@portaloo.> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Sender: Edward Betts Package: file Version: 3.27-1 Severity: Wishlist $ file /etc/* bootptab: C++ program text protocols: C++ program text wine.conf: Lisp/Scheme program text I could supply the files but they are all standard and would just fill up the Bug Tracking System. Here is the first six lines of each: ==> /etc/bootptab <== # /etc/bootptab: database for bootp server (/usr/sbin/bootpd) # # Blank lines and lines beginning with '#' are ignored. # # Legend: (see bootptab.5) # first field -- hostname (not indented) ==> /etc/protocols <== # /etc/protocols: # $Id: protocols,v 1.1 1995/02/24 01:09:41 imurdock Exp $ # # Internet (IP) protocols # # from: @(#)protocols 5.1 (Berkeley) 4/17/89 ==> /etc/wine.conf <== ;; ;; MS-DOS drives configuration ;; ;; Each section has the following format: ;; [Drive X] ;; Path=xxx (Unix path for drive root) No clues there.   Changed Bug title. Request was from Michael Piefel <piefel@debian.org> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 8 Mar 2002 14:00:32 +0000 From piefel@informatik.hu-berlin.de Fri Mar 08 08:00:32 2002 Return-path: Received: from kosh.informatik.hu-berlin.de [141.20.23.210] (mail) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 16jKvA-0003HH-00; Fri, 08 Mar 2002 08:00:32 -0600 Received: from piefel by kosh.informatik.hu-berlin.de with local (Exim 3.35 #1 (Debian)) id 16jKv9-00030A-00 for ; Fri, 08 Mar 2002 15:00:31 +0100 Date: Fri, 8 Mar 2002 15:00:31 +0100 From: Michael Piefel To: Debian Bug Control Subject: File once more (2) Message-ID: <20020308140031.GV5639@kosh.informatik.hu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: Michael Piefel Delivered-To: control@bugs.debian.org retitle 135671 file: Addtional magic for Doom retitle 38542 file: false positives (text file guessing weak) tag 127534 fixed thanks This last one has been dealt with as a side effect of 105505.   Information forwarded to debian-bugs-dist@lists.debian.org, Michael Piefel <piefel@debian.org>:
Bug#38542; Package file.   debian-bugs-dist@lists.debian.orgMichael Piefel  X-Loop: owner@bugs.debian.org Subject: Bug#38542: file: It would be nice to be able to turn off the hard-wired content-dependent rules Reply-To: Reuben Thomas , 38542@bugs.debian.org Resent-From: Reuben Thomas Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Michael Piefel Resent-Date: Mon, 23 Oct 2006 23:50:32 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 38542 X-Debian-PR-Package: file X-Debian-PR-Keywords: X-Debian-PR-Source: file Received: via spool by 38542-submit@bugs.debian.org id=B38542.116163986715569 (code B ref 38542); Mon, 23 Oct 2006 23:50:32 +0000 Received: (at 38542) by bugs.debian.org; 23 Oct 2006 21:44:27 +0000 Received: from pelican.sc3d.org ([216.184.201.86]) by spohr.debian.org with esmtp (Exim 4.50) id 1Gc5UX-0002vj-VV for 38542@bugs.debian.org; Mon, 23 Oct 2006 12:29:46 -0700 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=mA1KxOEybBwZ/cSLZOJl3k0u8xODEjyeS0ZIKKwPelOaEITWUfNjtUeXFhcSgPLBnV1ovId8m9/btrwiGxrQIXAqdhO77Quf5hzgFS6z28jgQb5mLQ4d3t1fdMc9mA44H95H1C1xPpWDNWf3up82JW4MkiRF0hSfyyrQMl9EhuI= Received: from drom (ip-89-168-11-64.cust.homechoice.net [89.168.11.64]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP id BDA51614; Mon, 23 Oct 2006 15:29:14 -0400 Content-Type: multipart/mixed; boundary="===============1563471081==" MIME-Version: 1.0 From: Reuben Thomas To: Debian Bug Tracking System <38542@bugs.debian.org> Message-ID: <20061023192913.12178.39705.reportbug@localhost.localdomain> X-Mailer: reportbug 3.30 Date: Mon, 23 Oct 2006 20:29:13 +0100 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02 This is a multi-part MIME message sent by reportbug. --===============1563471081== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Package: file Version: 4.17-4 Followup-For: Bug #38542 I am having problems with these rules too, and there seems to be no way to turn them off. I can see how they might be useful e.g. in code analysis, but for other uses (e.g. determining MIME type for serving files from a web application) they are a positive nuisance: all sorts of text-ish files end up being identified as program source. Of course, I want REAL program sources (ending in the correct suffixes, normally) to be identified as such, but equally non-suffixed files that aren't text (e.g. scripts) should also be correctly identified, so I can't rely on suffixes alone. I attach a (tested!) patch (code and docs!) to add a new option --no-ascmagic/-A. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages file depends on: ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries ii libmagic1 4.17-4 File type determination library us file recommends no packages. -- no debconf information --===============1563471081== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file_noascmagic.diff" diff -Nur file-4.17/doc/file.man file-4.17-opt_ascmagic/doc/file.man --- file-4.17/doc/file.man 2006-10-23 19:39:10.000000000 +0100 +++ file-4.17-opt_ascmagic/doc/file.man 2006-10-23 20:18:03.000000000 +0100 @@ -6,7 +6,7 @@ .SH SYNOPSIS .B file [ -.B \-bchikLnNprsvz +.B \-bchiAkLnNprsvz ] [ .B \-f @@ -194,6 +194,11 @@ .I POSIXLY_CORRECT is not defined. .TP 8 +.B "\-A, \-\-no-ascmagic" +Causes built-in rules to guess certain programming language source +types from their content to be skipped. These rules can cause problems +by giving false positives on plain text files. +.TP 8 .B "\-i, \-\-mime" Causes the file command to output mime type strings rather than the more traditional human readable ones. Thus it may say diff -Nur file-4.17/src/file.c file-4.17-opt_ascmagic/src/file.c --- file-4.17/src/file.c 2006-10-23 19:39:10.000000000 +0100 +++ file-4.17-opt_ascmagic/src/file.c 2006-10-23 20:22:10.000000000 +0100 @@ -126,7 +126,7 @@ int flags = 0; char *home, *usermagic; struct stat sb; -#define OPTSTRING "bcCdf:F:hikLm:nNprsvz" +#define OPTSTRING "bcCdf:F:hiAkLm:nNprsvz" #ifdef HAVE_GETOPT_LONG int longindex; private struct option long_options[] = @@ -139,6 +139,7 @@ {"files-from", 1, 0, 'f'}, {"separator", 1, 0, 'F'}, {"mime", 0, 0, 'i'}, + {"no-ascmagic", 0, 0, 'A'}, {"keep-going", 0, 0, 'k'}, #ifdef S_IFLNK {"dereference", 0, 0, 'L'}, @@ -229,6 +230,9 @@ case 'i': flags |= MAGIC_MIME; break; + case 'A': + flags |= MAGIC_NOASCMAGIC; + break; case 'k': flags |= MAGIC_CONTINUE; break; diff -Nur file-4.17/src/funcs.c file-4.17-opt_ascmagic/src/funcs.c --- file-4.17/src/funcs.c 2006-03-02 22:10:26.000000000 +0000 +++ file-4.17-opt_ascmagic/src/funcs.c 2006-10-23 20:10:03.000000000 +0100 @@ -128,7 +128,7 @@ /* try tests in /etc/magic (or surrogate magic file) */ if ((m = file_softmagic(ms, buf, nb)) == 0) { /* try known keywords, check whether it is ASCII */ - if ((m = file_ascmagic(ms, buf, nb)) == 0) { + if (ms->flags & MAGIC_NOASCMAGIC || (m = file_ascmagic(ms, buf, nb)) == 0) { /* abandon hope, all ye who remain here */ if (file_printf(ms, ms->flags & MAGIC_MIME ? (nb ? "application/octet-stream" : diff -Nur file-4.17/src/magic.h file-4.17-opt_ascmagic/src/magic.h --- file-4.17/src/magic.h 2004-09-25 16:20:29.000000000 +0100 +++ file-4.17-opt_ascmagic/src/magic.h 2006-10-23 20:10:59.000000000 +0100 @@ -40,6 +40,7 @@ #define MAGIC_PRESERVE_ATIME 0x080 /* Restore access time on exit */ #define MAGIC_RAW 0x100 /* Don't translate unprintable chars */ #define MAGIC_ERROR 0x200 /* Handle ENOENT etc as real errors */ +#define MAGIC_NOASCMAGIC 0x400 /* Don't use ascmagic rules */ #ifdef __cplusplus extern "C" { --===============1563471081==--   Acknowledgement sent to Reuben Thomas <rrt@sc3d.org>:
Extra info received and forwarded to list. Copy sent to Michael Piefel <piefel@debian.org>.   -t  Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.417 (Entity 5.417) Content-Type: text/plain; charset=utf-8 X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Reuben Thomas Subject: Bug#38542: Info received (file: It would be nice to be able to turn off the hard-wired content-dependent rules) Message-Id: References: <20061023192913.12178.39705.reportbug@localhost.localdomain> <19990529231445.A2898@portaloo.> X-Debian-PR-Message: ack-info 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Reply-To: 38542@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Michael Piefel If you wish to continue to submit further information on this problem, please send it to 38542@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 38542) by bugs.debian.org; 23 Oct 2006 21:44:27 +0000 From SRS0=379c30a9b0e9debf3d785ff492edad2b5fa44be7=132=sc3d.org=rrt@sc3d.org Mon Oct 23 14:44:26 2006 Return-path: Received: from pelican.sc3d.org ([216.184.201.86]) by spohr.debian.org with esmtp (Exim 4.50) id 1Gc5UX-0002vj-VV for 38542@bugs.debian.org; Mon, 23 Oct 2006 12:29:46 -0700 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=mA1KxOEybBwZ/cSLZOJl3k0u8xODEjyeS0ZIKKwPelOaEITWUfNjtUeXFhcSgPLBnV1ovId8m9/btrwiGxrQIXAqdhO77Quf5hzgFS6z28jgQb5mLQ4d3t1fdMc9mA44H95H1C1xPpWDNWf3up82JW4MkiRF0hSfyyrQMl9EhuI= Received: from drom (ip-89-168-11-64.cust.homechoice.net [89.168.11.64]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP id BDA51614; Mon, 23 Oct 2006 15:29:14 -0400 Content-Type: multipart/mixed; boundary="===============1563471081==" MIME-Version: 1.0 From: Reuben Thomas To: Debian Bug Tracking System <38542@bugs.debian.org> Subject: file: It would be nice to be able to turn off the hard-wired content-dependent rules Message-ID: <20061023192913.12178.39705.reportbug@localhost.localdomain> X-Mailer: reportbug 3.30 Date: Mon, 23 Oct 2006 20:29:13 +0100 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02 This is a multi-part MIME message sent by reportbug. --===============1563471081== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Package: file Version: 4.17-4 Followup-For: Bug #38542 I am having problems with these rules too, and there seems to be no way to turn them off. I can see how they might be useful e.g. in code analysis, but for other uses (e.g. determining MIME type for serving files from a web application) they are a positive nuisance: all sorts of text-ish files end up being identified as program source. Of course, I want REAL program sources (ending in the correct suffixes, normally) to be identified as such, but equally non-suffixed files that aren't text (e.g. scripts) should also be correctly identified, so I can't rely on suffixes alone. I attach a (tested!) patch (code and docs!) to add a new option --no-ascmagic/-A. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages file depends on: ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries ii libmagic1 4.17-4 File type determination library us file recommends no packages. -- no debconf information --===============1563471081== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file_noascmagic.diff" diff -Nur file-4.17/doc/file.man file-4.17-opt_ascmagic/doc/file.man --- file-4.17/doc/file.man 2006-10-23 19:39:10.000000000 +0100 +++ file-4.17-opt_ascmagic/doc/file.man 2006-10-23 20:18:03.000000000 +0100 @@ -6,7 +6,7 @@ .SH SYNOPSIS .B file [ -.B \-bchikLnNprsvz +.B \-bchiAkLnNprsvz ] [ .B \-f @@ -194,6 +194,11 @@ .I POSIXLY_CORRECT is not defined. .TP 8 +.B "\-A, \-\-no-ascmagic" +Causes built-in rules to guess certain programming language source +types from their content to be skipped. These rules can cause problems +by giving false positives on plain text files. +.TP 8 .B "\-i, \-\-mime" Causes the file command to output mime type strings rather than the more traditional human readable ones. Thus it may say diff -Nur file-4.17/src/file.c file-4.17-opt_ascmagic/src/file.c --- file-4.17/src/file.c 2006-10-23 19:39:10.000000000 +0100 +++ file-4.17-opt_ascmagic/src/file.c 2006-10-23 20:22:10.000000000 +0100 @@ -126,7 +126,7 @@ int flags = 0; char *home, *usermagic; struct stat sb; -#define OPTSTRING "bcCdf:F:hikLm:nNprsvz" +#define OPTSTRING "bcCdf:F:hiAkLm:nNprsvz" #ifdef HAVE_GETOPT_LONG int longindex; private struct option long_options[] = @@ -139,6 +139,7 @@ {"files-from", 1, 0, 'f'}, {"separator", 1, 0, 'F'}, {"mime", 0, 0, 'i'}, + {"no-ascmagic", 0, 0, 'A'}, {"keep-going", 0, 0, 'k'}, #ifdef S_IFLNK {"dereference", 0, 0, 'L'}, @@ -229,6 +230,9 @@ case 'i': flags |= MAGIC_MIME; break; + case 'A': + flags |= MAGIC_NOASCMAGIC; + break; case 'k': flags |= MAGIC_CONTINUE; break; diff -Nur file-4.17/src/funcs.c file-4.17-opt_ascmagic/src/funcs.c --- file-4.17/src/funcs.c 2006-03-02 22:10:26.000000000 +0000 +++ file-4.17-opt_ascmagic/src/funcs.c 2006-10-23 20:10:03.000000000 +0100 @@ -128,7 +128,7 @@ /* try tests in /etc/magic (or surrogate magic file) */ if ((m = file_softmagic(ms, buf, nb)) == 0) { /* try known keywords, check whether it is ASCII */ - if ((m = file_ascmagic(ms, buf, nb)) == 0) { + if (ms->flags & MAGIC_NOASCMAGIC || (m = file_ascmagic(ms, buf, nb)) == 0) { /* abandon hope, all ye who remain here */ if (file_printf(ms, ms->flags & MAGIC_MIME ? (nb ? "application/octet-stream" : diff -Nur file-4.17/src/magic.h file-4.17-opt_ascmagic/src/magic.h --- file-4.17/src/magic.h 2004-09-25 16:20:29.000000000 +0100 +++ file-4.17-opt_ascmagic/src/magic.h 2006-10-23 20:10:59.000000000 +0100 @@ -40,6 +40,7 @@ #define MAGIC_PRESERVE_ATIME 0x080 /* Restore access time on exit */ #define MAGIC_RAW 0x100 /* Don't translate unprintable chars */ #define MAGIC_ERROR 0x200 /* Handle ENOENT etc as real errors */ +#define MAGIC_NOASCMAGIC 0x400 /* Don't use ascmagic rules */ #ifdef __cplusplus extern "C" { --===============1563471081==--   Information forwarded to debian-bugs-dist@lists.debian.org, Michael Piefel <piefel@debian.org>:
Bug#38542; Package file.   debian-bugs-dist@lists.debian.orgMichael Piefel  X-Loop: owner@bugs.debian.org Subject: Bug#38542: file: Improved patch Reply-To: Reuben Thomas , 38542@bugs.debian.org Resent-From: Reuben Thomas Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Michael Piefel Resent-Date: Mon, 23 Oct 2006 23:50:35 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 38542 X-Debian-PR-Package: file X-Debian-PR-Keywords: X-Debian-PR-Source: file Received: via spool by 38542-submit@bugs.debian.org id=B38542.116163988316879 (code B ref 38542); Mon, 23 Oct 2006 23:50:35 +0000 Received: (at 38542) by bugs.debian.org; 23 Oct 2006 21:44:43 +0000 Received: from pelican.sc3d.org ([216.184.201.86]) by spohr.debian.org with esmtp (Exim 4.50) id 1Gc5n7-00052y-1e for 38542@bugs.debian.org; Mon, 23 Oct 2006 12:48:57 -0700 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=7AGXjNN8afDFrEJRkDY4wU7+T6QDIqwWXack2YKVWD0rZ/pPX6V15vqs7z5+qUU9knxhAHFqA8nF79gwd4E6VIxqwQ2hh2i+P+Tb8hhBQ1+XPeBRKwTjpuUuJJE61KNkNKNAS622hHdJAIoioNouN8DIh7msNsFlGSHwO7Rfh3M= Received: from drom (ip-89-168-11-64.cust.homechoice.net [89.168.11.64]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP id BDT39125; Mon, 23 Oct 2006 15:48:25 -0400 Content-Type: multipart/mixed; boundary="===============0808522586==" MIME-Version: 1.0 From: Reuben Thomas To: Debian Bug Tracking System <38542@bugs.debian.org> Message-ID: <20061023194824.12956.3988.reportbug@localhost.localdomain> X-Mailer: reportbug 3.30 Date: Mon, 23 Oct 2006 20:48:24 +0100 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02 This is a multi-part MIME message sent by reportbug. --===============0808522586== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Package: file Version: 4.17-4 Followup-For: Bug #38542 My original patch didn't quite do what I wanted because it turned off all text detection, clearly not a good idea! Instead, I've made only the non-language detection routines run when -A is supplied. I attach the updated patch. Note that the documentation is now correct, but the code is arguably confusing is the way it deactivates only part of file_ascmagic. If this is a problem I'd be happy to work on it. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages file depends on: ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries ii libmagic1 4.17-4 File type determination library us file recommends no packages. -- no debconf information --===============0808522586== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file_noascmagic.diff" diff -Nur file-4.17/doc/file.man file-4.17-opt_ascmagic/doc/file.man --- file-4.17/doc/file.man 2006-10-23 19:39:10.000000000 +0100 +++ file-4.17-opt_ascmagic/doc/file.man 2006-10-23 20:18:03.000000000 +0100 @@ -6,7 +6,7 @@ .SH SYNOPSIS .B file [ -.B \-bchikLnNprsvz +.B \-bchiAkLnNprsvz ] [ .B \-f @@ -194,6 +194,11 @@ .I POSIXLY_CORRECT is not defined. .TP 8 +.B "\-A, \-\-no-ascmagic" +Causes built-in rules to guess certain programming language source +types from their content to be skipped. These rules can cause problems +by giving false positives on plain text files. +.TP 8 .B "\-i, \-\-mime" Causes the file command to output mime type strings rather than the more traditional human readable ones. Thus it may say diff -Nur file-4.17/src/ascmagic.c file-4.17-opt_ascmagic/src/ascmagic.c --- file-4.17/src/ascmagic.c 2006-03-12 22:09:33.000000000 +0000 +++ file-4.17-opt_ascmagic/src/ascmagic.c 2006-10-23 20:35:47.000000000 +0100 @@ -159,6 +159,9 @@ goto done; } + if (ms->flags & MAGIC_NOASCMAGIC) + goto subtype_identified; + /* * for troff, look for . + letter + letter or .\"; * this must be done to disambiguate tar archives' ./file diff -Nur file-4.17/src/file.c file-4.17-opt_ascmagic/src/file.c --- file-4.17/src/file.c 2006-10-23 19:39:10.000000000 +0100 +++ file-4.17-opt_ascmagic/src/file.c 2006-10-23 20:22:10.000000000 +0100 @@ -126,7 +126,7 @@ int flags = 0; char *home, *usermagic; struct stat sb; -#define OPTSTRING "bcCdf:F:hikLm:nNprsvz" +#define OPTSTRING "bcCdf:F:hiAkLm:nNprsvz" #ifdef HAVE_GETOPT_LONG int longindex; private struct option long_options[] = @@ -139,6 +139,7 @@ {"files-from", 1, 0, 'f'}, {"separator", 1, 0, 'F'}, {"mime", 0, 0, 'i'}, + {"no-ascmagic", 0, 0, 'A'}, {"keep-going", 0, 0, 'k'}, #ifdef S_IFLNK {"dereference", 0, 0, 'L'}, @@ -229,6 +230,9 @@ case 'i': flags |= MAGIC_MIME; break; + case 'A': + flags |= MAGIC_NOASCMAGIC; + break; case 'k': flags |= MAGIC_CONTINUE; break; diff -Nur file-4.17/src/magic.h file-4.17-opt_ascmagic/src/magic.h --- file-4.17/src/magic.h 2004-09-25 16:20:29.000000000 +0100 +++ file-4.17-opt_ascmagic/src/magic.h 2006-10-23 20:10:59.000000000 +0100 @@ -40,6 +40,7 @@ #define MAGIC_PRESERVE_ATIME 0x080 /* Restore access time on exit */ #define MAGIC_RAW 0x100 /* Don't translate unprintable chars */ #define MAGIC_ERROR 0x200 /* Handle ENOENT etc as real errors */ +#define MAGIC_NOASCMAGIC 0x400 /* Don't use ascmagic rules */ #ifdef __cplusplus extern "C" { --===============0808522586==--   Acknowledgement sent to Reuben Thomas <rrt@sc3d.org>:
Extra info received and forwarded to list. Copy sent to Michael Piefel <piefel@debian.org>.   -t  Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.417 (Entity 5.417) Content-Type: text/plain; charset=utf-8 X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Reuben Thomas Subject: Bug#38542: Info received (file: Improved patch) Message-Id: References: <20061023194824.12956.3988.reportbug@localhost.localdomain> <19990529231445.A2898@portaloo.> X-Debian-PR-Message: ack-info 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Reply-To: 38542@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Michael Piefel If you wish to continue to submit further information on this problem, please send it to 38542@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 38542) by bugs.debian.org; 23 Oct 2006 21:44:43 +0000 From SRS0=379c30a9b0e9debf3d785ff492edad2b5fa44be7=132=sc3d.org=rrt@sc3d.org Mon Oct 23 14:44:38 2006 Return-path: Received: from pelican.sc3d.org ([216.184.201.86]) by spohr.debian.org with esmtp (Exim 4.50) id 1Gc5n7-00052y-1e for 38542@bugs.debian.org; Mon, 23 Oct 2006 12:48:57 -0700 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=7AGXjNN8afDFrEJRkDY4wU7+T6QDIqwWXack2YKVWD0rZ/pPX6V15vqs7z5+qUU9knxhAHFqA8nF79gwd4E6VIxqwQ2hh2i+P+Tb8hhBQ1+XPeBRKwTjpuUuJJE61KNkNKNAS622hHdJAIoioNouN8DIh7msNsFlGSHwO7Rfh3M= Received: from drom (ip-89-168-11-64.cust.homechoice.net [89.168.11.64]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP id BDT39125; Mon, 23 Oct 2006 15:48:25 -0400 Content-Type: multipart/mixed; boundary="===============0808522586==" MIME-Version: 1.0 From: Reuben Thomas To: Debian Bug Tracking System <38542@bugs.debian.org> Subject: file: Improved patch Message-ID: <20061023194824.12956.3988.reportbug@localhost.localdomain> X-Mailer: reportbug 3.30 Date: Mon, 23 Oct 2006 20:48:24 +0100 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02 This is a multi-part MIME message sent by reportbug. --===============0808522586== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Package: file Version: 4.17-4 Followup-For: Bug #38542 My original patch didn't quite do what I wanted because it turned off all text detection, clearly not a good idea! Instead, I've made only the non-language detection routines run when -A is supplied. I attach the updated patch. Note that the documentation is now correct, but the code is arguably confusing is the way it deactivates only part of file_ascmagic. If this is a problem I'd be happy to work on it. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages file depends on: ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries ii libmagic1 4.17-4 File type determination library us file recommends no packages. -- no debconf information --===============0808522586== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file_noascmagic.diff" diff -Nur file-4.17/doc/file.man file-4.17-opt_ascmagic/doc/file.man --- file-4.17/doc/file.man 2006-10-23 19:39:10.000000000 +0100 +++ file-4.17-opt_ascmagic/doc/file.man 2006-10-23 20:18:03.000000000 +0100 @@ -6,7 +6,7 @@ .SH SYNOPSIS .B file [ -.B \-bchikLnNprsvz +.B \-bchiAkLnNprsvz ] [ .B \-f @@ -194,6 +194,11 @@ .I POSIXLY_CORRECT is not defined. .TP 8 +.B "\-A, \-\-no-ascmagic" +Causes built-in rules to guess certain programming language source +types from their content to be skipped. These rules can cause problems +by giving false positives on plain text files. +.TP 8 .B "\-i, \-\-mime" Causes the file command to output mime type strings rather than the more traditional human readable ones. Thus it may say diff -Nur file-4.17/src/ascmagic.c file-4.17-opt_ascmagic/src/ascmagic.c --- file-4.17/src/ascmagic.c 2006-03-12 22:09:33.000000000 +0000 +++ file-4.17-opt_ascmagic/src/ascmagic.c 2006-10-23 20:35:47.000000000 +0100 @@ -159,6 +159,9 @@ goto done; } + if (ms->flags & MAGIC_NOASCMAGIC) + goto subtype_identified; + /* * for troff, look for . + letter + letter or .\"; * this must be done to disambiguate tar archives' ./file diff -Nur file-4.17/src/file.c file-4.17-opt_ascmagic/src/file.c --- file-4.17/src/file.c 2006-10-23 19:39:10.000000000 +0100 +++ file-4.17-opt_ascmagic/src/file.c 2006-10-23 20:22:10.000000000 +0100 @@ -126,7 +126,7 @@ int flags = 0; char *home, *usermagic; struct stat sb; -#define OPTSTRING "bcCdf:F:hikLm:nNprsvz" +#define OPTSTRING "bcCdf:F:hiAkLm:nNprsvz" #ifdef HAVE_GETOPT_LONG int longindex; private struct option long_options[] = @@ -139,6 +139,7 @@ {"files-from", 1, 0, 'f'}, {"separator", 1, 0, 'F'}, {"mime", 0, 0, 'i'}, + {"no-ascmagic", 0, 0, 'A'}, {"keep-going", 0, 0, 'k'}, #ifdef S_IFLNK {"dereference", 0, 0, 'L'}, @@ -229,6 +230,9 @@ case 'i': flags |= MAGIC_MIME; break; + case 'A': + flags |= MAGIC_NOASCMAGIC; + break; case 'k': flags |= MAGIC_CONTINUE; break; diff -Nur file-4.17/src/magic.h file-4.17-opt_ascmagic/src/magic.h --- file-4.17/src/magic.h 2004-09-25 16:20:29.000000000 +0100 +++ file-4.17-opt_ascmagic/src/magic.h 2006-10-23 20:10:59.000000000 +0100 @@ -40,6 +40,7 @@ #define MAGIC_PRESERVE_ATIME 0x080 /* Restore access time on exit */ #define MAGIC_RAW 0x100 /* Don't translate unprintable chars */ #define MAGIC_ERROR 0x200 /* Handle ENOENT etc as real errors */ +#define MAGIC_NOASCMAGIC 0x400 /* Don't use ascmagic rules */ #ifdef __cplusplus extern "C" { --===============0808522586==--   Information forwarded to debian-bugs-dist@lists.debian.org, Michael Piefel <piefel@debian.org>:
Bug#38542; Package file.   debian-bugs-dist@lists.debian.orgMichael Piefel  X-Loop: owner@bugs.debian.org Subject: Bug#38542: file: This bug is fixed upstream in the next release; please close Reply-To: Reuben Thomas , 38542@bugs.debian.org Resent-From: Reuben Thomas Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Michael Piefel Resent-Date: Fri, 26 Jan 2007 01:33:11 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 38542 X-Debian-PR-Package: file X-Debian-PR-Keywords: X-Debian-PR-Source: file Received: via spool by 38542-submit@bugs.debian.org id=B38542.116977492721122 (code B ref 38542); Fri, 26 Jan 2007 01:33:11 +0000 Received: (at 38542) by bugs.debian.org; 26 Jan 2007 01:28:47 +0000 Received: from pelican.sc3d.org ([216.184.201.86]) by spohr.debian.org with esmtp (Exim 4.50) id 1HAFtW-0005Mr-PB for 38542@bugs.debian.org; Thu, 25 Jan 2007 17:28:47 -0800 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=jWDeWTN3Y5Terq8MmeUm3iXvGGBfB0i41uFESmmgiijQ0Nk86VycLEdAj5F7PJmZtI5st5NwjtjDpiaAz+vctE7Cm2f5v1uwwgZD3FzKV2ouPKjlgti/la7jD6lRShxNwGuGs74qQEBFPZMUCXZOUTaUjlsl5udVPyOxgTe3hTE= Received: from drom (80-41-67-179.dynamic.dsl.as9105.com [80.41.67.179]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP id FCC18716; Thu, 25 Jan 2007 20:28:16 -0500 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Reuben Thomas To: Debian Bug Tracking System <38542@bugs.debian.org> Message-ID: <20070126012812.6216.38844.reportbug@localhost.localdomain> X-Mailer: reportbug 3.31 Date: Fri, 26 Jan 2007 01:28:12 +0000 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE, RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 Package: file Version: 4.17-5 Followup-For: Bug #38542 I sent my report and patch upstream and it will be fixed in the next release. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-3-686 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages file depends on: ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries ii libmagic1 4.17-5 File type determination library us file recommends no packages. -- no debconf information   Acknowledgement sent to Reuben Thomas <rrt@sc3d.org>:
Extra info received and forwarded to list. Copy sent to Michael Piefel <piefel@debian.org>.   -t  Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.417 (Entity 5.417) Content-Type: text/plain; charset=utf-8 X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Reuben Thomas Subject: Bug#38542: Info received (file: This bug is fixed upstream in the next release; please close) Message-Id: References: <20070126012812.6216.38844.reportbug@localhost.localdomain> <19990529231445.A2898@portaloo.> X-Debian-PR-Message: ack-info 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Reply-To: 38542@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Michael Piefel If you wish to continue to submit further information on this problem, please send it to 38542@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 38542) by bugs.debian.org; 26 Jan 2007 01:28:47 +0000 From SRS0=1df87bb5621168847663ea74e9cccc430069ebad=226=sc3d.org=rrt@sc3d.org Thu Jan 25 17:28:47 2007 Return-path: Received: from pelican.sc3d.org ([216.184.201.86]) by spohr.debian.org with esmtp (Exim 4.50) id 1HAFtW-0005Mr-PB for 38542@bugs.debian.org; Thu, 25 Jan 2007 17:28:47 -0800 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=jWDeWTN3Y5Terq8MmeUm3iXvGGBfB0i41uFESmmgiijQ0Nk86VycLEdAj5F7PJmZtI5st5NwjtjDpiaAz+vctE7Cm2f5v1uwwgZD3FzKV2ouPKjlgti/la7jD6lRShxNwGuGs74qQEBFPZMUCXZOUTaUjlsl5udVPyOxgTe3hTE= Received: from drom (80-41-67-179.dynamic.dsl.as9105.com [80.41.67.179]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP id FCC18716; Thu, 25 Jan 2007 20:28:16 -0500 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Reuben Thomas To: Debian Bug Tracking System <38542@bugs.debian.org> Subject: file: This bug is fixed upstream in the next release; please close Message-ID: <20070126012812.6216.38844.reportbug@localhost.localdomain> X-Mailer: reportbug 3.31 Date: Fri, 26 Jan 2007 01:28:12 +0000 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE, RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 Package: file Version: 4.17-5 Followup-For: Bug #38542 I sent my report and patch upstream and it will be fixed in the next release. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-3-686 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages file depends on: ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries ii libmagic1 4.17-5 File type determination library us file recommends no packages. -- no debconf information   Information forwarded to debian-bugs-dist@lists.debian.org, Michael Piefel <piefel@debian.org>:
Bug#38542; Package file.   debian-bugs-dist@lists.debian.orgMichael Piefel  X-Loop: owner@bugs.debian.org Subject: Bug#38542: file: This bug is fixed upstream in the next release; please close Reply-To: "era eriksson" , 38542@bugs.debian.org Resent-From: "era eriksson" Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Michael Piefel Resent-Date: Tue, 20 Mar 2007 10:15:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 38542 X-Debian-PR-Package: file X-Debian-PR-Keywords: X-Debian-PR-Source: file Received: via spool by 38542-submit@bugs.debian.org id=B38542.11743854852096 (code B ref 38542); Tue, 20 Mar 2007 10:15:01 +0000 Received: (at 38542) by bugs.debian.org; 20 Mar 2007 10:11:25 +0000 Received: from out5.smtp.messagingengine.com ([66.111.4.29]) by rietz.debian.org with esmtp (Exim 4.50) id 1HTbH6-0003xl-ER for 38542@bugs.debian.org; Tue, 20 Mar 2007 10:09:04 +0000 Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 4B4EF205449 for <38542@bugs.debian.org>; Tue, 20 Mar 2007 06:09:02 -0400 (EDT) Received: from web2.messagingengine.com ([10.202.2.211]) by out1.internal (MEProxy); Tue, 20 Mar 2007 06:09:02 -0400 Received: by web2.messagingengine.com (Postfix, from userid 99) id 972C31503A; Tue, 20 Mar 2007 06:09:04 -0400 (EDT) Message-Id: <1174385344.18292.1180370411@webmail.messagingengine.com> X-Sasl-Enc: CXB0fhPTi8rLgW/6b9YhhRjOS9p8YVjsyqVHSX7iWxBW 1174385344 From: "era eriksson" To: 38542@bugs.debian.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-15" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface Date: Tue, 20 Mar 2007 12:09:04 +0200 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no version=2.60-bugs.debian.org_2005_01_02 > I sent my report and patch upstream and it will be fixed in the next > release. The Debian bug should be closed only when a fixed version is available in Debian. The ChangeLog for 4.20 doesn't mention any patch from you; do you know if it was included there? If not, do you know which "next release" it will be in? /* era */ -- If this were a real .signature, it would suck less. Well, maybe not.   Acknowledgement sent to "era eriksson" <era@iki.fi>:
Extra info received and forwarded to list. Copy sent to Michael Piefel <piefel@debian.org>.   -t  Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.417 (Entity 5.417) Content-Type: text/plain; charset=utf-8 X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: "era eriksson" Subject: Bug#38542: Info received (file: This bug is fixed upstream in the next release; please close) Message-Id: References: <1174385344.18292.1180370411@webmail.messagingengine.com> <19990529231445.A2898@portaloo.> X-Debian-PR-Message: ack-info 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Reply-To: 38542@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Michael Piefel If you wish to continue to submit further information on this problem, please send it to 38542@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 38542) by bugs.debian.org; 20 Mar 2007 10:11:25 +0000 From era@iki.fi Tue Mar 20 10:11:24 2007 Return-path: Received: from out5.smtp.messagingengine.com ([66.111.4.29]) by rietz.debian.org with esmtp (Exim 4.50) id 1HTbH6-0003xl-ER for 38542@bugs.debian.org; Tue, 20 Mar 2007 10:09:04 +0000 Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 4B4EF205449 for <38542@bugs.debian.org>; Tue, 20 Mar 2007 06:09:02 -0400 (EDT) Received: from web2.messagingengine.com ([10.202.2.211]) by out1.internal (MEProxy); Tue, 20 Mar 2007 06:09:02 -0400 Received: by web2.messagingengine.com (Postfix, from userid 99) id 972C31503A; Tue, 20 Mar 2007 06:09:04 -0400 (EDT) Message-Id: <1174385344.18292.1180370411@webmail.messagingengine.com> X-Sasl-Enc: CXB0fhPTi8rLgW/6b9YhhRjOS9p8YVjsyqVHSX7iWxBW 1174385344 From: "era eriksson" To: 38542@bugs.debian.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-15" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface Subject: Re: file: This bug is fixed upstream in the next release; please close Date: Tue, 20 Mar 2007 12:09:04 +0200 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no version=2.60-bugs.debian.org_2005_01_02 > I sent my report and patch upstream and it will be fixed in the next > release. The Debian bug should be closed only when a fixed version is available in Debian. The ChangeLog for 4.20 doesn't mention any patch from you; do you know if it was included there? If not, do you know which "next release" it will be in? /* era */ -- If this were a real .signature, it would suck less. Well, maybe not.   Information forwarded to debian-bugs-dist@lists.debian.org, Michael Piefel <piefel@debian.org>:
Bug#38542; Package file.   debian-bugs-dist@lists.debian.orgMichael Piefel  X-Loop: owner@bugs.debian.org Subject: Bug#38542: file: This bug is fixed in 4.20 with the -e switch Reply-To: Reuben Thomas , 38542@bugs.debian.org Resent-From: Reuben Thomas Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Michael Piefel Resent-Date: Fri, 23 Mar 2007 14:09:07 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 38542 X-Debian-PR-Package: file X-Debian-PR-Keywords: X-Debian-PR-Source: file Received: via spool by 38542-submit@bugs.debian.org id=B38542.117465813432083 (code B ref 38542); Fri, 23 Mar 2007 14:09:07 +0000 Received: (at 38542) by bugs.debian.org; 23 Mar 2007 13:55:34 +0000 Received: from pelican.sc3d.org ([216.184.201.86]) by rietz.debian.org with esmtp (Exim 4.50) id 1HUkEv-0006bB-LN for 38542@bugs.debian.org; Fri, 23 Mar 2007 13:55:34 +0000 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=jF44HQBDZ69732valI6La9JayXlUyIxwcK+JXSr7CxATbQVxp1YUNnzSMaSnLsCeTSVaef9wL/yCqnz4ieFO2ApXD+VQbJ7/hukkZRRBhp0i/LhPY2yCMtrt9SpK5MpvmaNac4edDj7PcTv3XvDg+cGQSQ9koSOWEQspU1tvzDw= Received: from drom (80-41-35-80.dynamic.dsl.as9105.com [80.41.35.80]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP id CQA54702; Fri, 23 Mar 2007 09:55:02 -0400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Reuben Thomas To: Debian Bug Tracking System <38542@bugs.debian.org> Message-ID: <20070323135501.8789.63078.reportbug@localhost.localdomain> X-Mailer: reportbug 3.33 Date: Fri, 23 Mar 2007 13:55:01 +0000 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE, RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 Package: file Followup-For: Bug #38542 My patch was not used upstream. Instead, the author added the -e (exclude) flag, which can be used to achieve the same result, but in a more fine-grained and flexible way. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages file depends on: ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libmagic1 4.20-1 File type determination library us file recommends no packages. -- no debconf information   Acknowledgement sent to Reuben Thomas <rrt@sc3d.org>:
Extra info received and forwarded to list. Copy sent to Michael Piefel <piefel@debian.org>.   -t  Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.417 (Entity 5.417) Content-Type: text/plain; charset=utf-8 X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Reuben Thomas Subject: Bug#38542: Info received (file: This bug is fixed in 4.20 with the -e switch) Message-Id: References: <20070323135501.8789.63078.reportbug@localhost.localdomain> <19990529231445.A2898@portaloo.> X-Debian-PR-Message: ack-info 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Reply-To: 38542@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Michael Piefel If you wish to continue to submit further information on this problem, please send it to 38542@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 38542) by bugs.debian.org; 23 Mar 2007 13:55:34 +0000 From SRS0=e35e8c3bb2da7e03700d50eb0d09f9f5efcf0db3=283=sc3d.org=rrt@sc3d.org Fri Mar 23 13:55:34 2007 Return-path: Received: from pelican.sc3d.org ([216.184.201.86]) by rietz.debian.org with esmtp (Exim 4.50) id 1HUkEv-0006bB-LN for 38542@bugs.debian.org; Fri, 23 Mar 2007 13:55:34 +0000 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=jF44HQBDZ69732valI6La9JayXlUyIxwcK+JXSr7CxATbQVxp1YUNnzSMaSnLsCeTSVaef9wL/yCqnz4ieFO2ApXD+VQbJ7/hukkZRRBhp0i/LhPY2yCMtrt9SpK5MpvmaNac4edDj7PcTv3XvDg+cGQSQ9koSOWEQspU1tvzDw= Received: from drom (80-41-35-80.dynamic.dsl.as9105.com [80.41.35.80]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP id CQA54702; Fri, 23 Mar 2007 09:55:02 -0400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Reuben Thomas To: Debian Bug Tracking System <38542@bugs.debian.org> Subject: file: This bug is fixed in 4.20 with the -e switch Message-ID: <20070323135501.8789.63078.reportbug@localhost.localdomain> X-Mailer: reportbug 3.33 Date: Fri, 23 Mar 2007 13:55:01 +0000 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE, RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 Package: file Followup-For: Bug #38542 My patch was not used upstream. Instead, the author added the -e (exclude) flag, which can be used to achieve the same result, but in a more fine-grained and flexible way. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages file depends on: ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libmagic1 4.20-1 File type determination library us file recommends no packages. -- no debconf information   Information forwarded to debian-bugs-dist@lists.debian.org, Michael Piefel <piefel@debian.org>:
Bug#38542; Package file.   debian-bugs-dist@lists.debian.orgMichael Piefel  X-Loop: owner@bugs.debian.org Subject: Bug#38542: file: Fix for -e, which is broken in 4.20 Reply-To: Reuben Thomas , 38542@bugs.debian.org Resent-From: Reuben Thomas Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Michael Piefel Resent-Date: Fri, 23 Mar 2007 14:27:11 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 38542 X-Debian-PR-Package: file X-Debian-PR-Keywords: X-Debian-PR-Source: file Received: via spool by 38542-submit@bugs.debian.org id=B38542.11746598541235 (code B ref 38542); Fri, 23 Mar 2007 14:27:11 +0000 Received: (at 38542) by bugs.debian.org; 23 Mar 2007 14:24:14 +0000 Received: from pelican.sc3d.org ([216.184.201.86]) by rietz.debian.org with esmtp (Exim 4.50) id 1HUkgg-0007EI-3k for 38542@bugs.debian.org; Fri, 23 Mar 2007 14:24:14 +0000 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=ZcCiMiOkmB4/uTg2KlcnclGUbXp2ce6FqpDYh+dRtZBpCdBNN1K1pNMzXpb2Fp1SYqll2uw/Cfa0wK51wjh5lsEVXcXRugZjjHAPHBHOK4ZnlSM+uSZ1IoB9rWTA1Raqv24hBHE2StSn2IJXL7VA73zYQ0RMIS94v3ZlFZHoY50= Received: from [192.168.0.133] (80-41-35-80.dynamic.dsl.as9105.com [80.41.35.80]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id CRU87542; Fri, 23 Mar 2007 10:23:42 -0400 Date: Fri, 23 Mar 2007 14:23:00 +0000 (GMT) From: Reuben Thomas X-X-Sender: rrt@localhost.localdomain To: 38542@bugs.debian.org cc: christos@zoulas.com In-Reply-To: Message-ID: References: <20070323135501.8789.63078.reportbug@localhost.localdomain> <19990529231445.A2898@portaloo.> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1818907906-1174659822=:5387" X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_00,RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1818907906-1174659822=:5387 Content-Type: TEXT/PLAIN; charset=us-ascii; format=flowed It turns out that although the feature has been added to allow the various built-in tests to be turned off, it's broken in 4.20 (I don't think it can be made to work, and trying to use it can make file segfault). I attach a patch against file.c from 4.20 to fix the command-line parsing. It does two things: first, it adds "e:" to the short options string; secondly, it changes the argument flag of the long option 'exclude' from 0 to 1 (because --exclude takes an argument). -- http://rrt.sc3d.org/ | think tank, n. a safe container for noxious gases --8323328-1818907906-1174659822=:5387 Content-Type: TEXT/x-diff; name=file.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=file.patch LS0tIGZpbGUtNC4yMC9zcmMvZmlsZS5jCTIwMDctMDEtMjUgMjE6MDU6NDYu MDAwMDAwMDAwICswMDAwDQorKysgZmlsZS00LjIwLXJydC9zcmMvZmlsZS5j CTIwMDctMDMtMjMgMTQ6MTk6MjQuMDAwMDAwMDAwICswMDAwDQpAQCAtMTI4 LDcgKzEyOCw3IEBADQogCWNoYXIgKmhvbWUsICp1c2VybWFnaWM7DQogCXN0 cnVjdCBzdGF0IHNiOw0KIAlzdGF0aWMgY29uc3QgY2hhciBobWFnaWNbXSA9 ICIvLm1hZ2ljIjsNCi0jZGVmaW5lIE9QVFNUUklORwkiYmNDZGY6RjpoaWtM bTpuTnByc3Z6MCINCisjZGVmaW5lIE9QVFNUUklORwkiYmNDZGU6ZjpGOmhp a0xtOm5OcHJzdnowIg0KICNpZmRlZiBIQVZFX0dFVE9QVF9MT05HDQogCWlu dCBsb25naW5kZXg7DQogCXN0YXRpYyBjb25zdCBzdHJ1Y3Qgb3B0aW9uIGxv bmdfb3B0aW9uc1tdID0NCkBAIC0xMzgsNyArMTM4LDcgQEANCiAJCXsiYnJp ZWYiLCAwLCAwLCAnYid9LA0KIAkJeyJjaGVja2luZy1wcmludG91dCIsIDAs IDAsICdjJ30sDQogCQl7ImRlYnVnIiwgMCwgMCwgJ2QnfSwNCi0JCXsiZXhj bHVkZSIsIDAsIDAsICdlJyB9LA0KKwkJeyJleGNsdWRlIiwgMSwgMCwgJ2Un IH0sDQogCQl7ImZpbGVzLWZyb20iLCAxLCAwLCAnZid9LA0KIAkJeyJzZXBh cmF0b3IiLCAxLCAwLCAnRid9LA0KIAkJeyJtaW1lIiwgMCwgMCwgJ2knfSwN Cg== --8323328-1818907906-1174659822=:5387--   Acknowledgement sent to Reuben Thomas <rrt@sc3d.org>:
Extra info received and forwarded to list. Copy sent to Michael Piefel <piefel@debian.org>.   -t  Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.417 (Entity 5.417) Content-Type: text/plain; charset=utf-8 X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Reuben Thomas Subject: Bug#38542: Info received (file: Fix for -e, which is broken in 4.20) Message-Id: References: <19990529231445.A2898@portaloo.> X-Debian-PR-Message: ack-info 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Reply-To: 38542@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Michael Piefel If you wish to continue to submit further information on this problem, please send it to 38542@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 38542) by bugs.debian.org; 23 Mar 2007 14:24:14 +0000 From SRS0=e35e8c3bb2da7e03700d50eb0d09f9f5efcf0db3=283=sc3d.org=rrt@sc3d.org Fri Mar 23 14:24:14 2007 Return-path: Received: from pelican.sc3d.org ([216.184.201.86]) by rietz.debian.org with esmtp (Exim 4.50) id 1HUkgg-0007EI-3k for 38542@bugs.debian.org; Fri, 23 Mar 2007 14:24:14 +0000 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=ZcCiMiOkmB4/uTg2KlcnclGUbXp2ce6FqpDYh+dRtZBpCdBNN1K1pNMzXpb2Fp1SYqll2uw/Cfa0wK51wjh5lsEVXcXRugZjjHAPHBHOK4ZnlSM+uSZ1IoB9rWTA1Raqv24hBHE2StSn2IJXL7VA73zYQ0RMIS94v3ZlFZHoY50= Received: from [192.168.0.133] (80-41-35-80.dynamic.dsl.as9105.com [80.41.35.80]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id CRU87542; Fri, 23 Mar 2007 10:23:42 -0400 Date: Fri, 23 Mar 2007 14:23:00 +0000 (GMT) From: Reuben Thomas X-X-Sender: rrt@localhost.localdomain To: 38542@bugs.debian.org cc: christos@zoulas.com Subject: file: Fix for -e, which is broken in 4.20 In-Reply-To: Message-ID: References: <20070323135501.8789.63078.reportbug@localhost.localdomain> <19990529231445.A2898@portaloo.> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1818907906-1174659822=:5387" X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_00,RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1818907906-1174659822=:5387 Content-Type: TEXT/PLAIN; charset=us-ascii; format=flowed It turns out that although the feature has been added to allow the various built-in tests to be turned off, it's broken in 4.20 (I don't think it can be made to work, and trying to use it can make file segfault). I attach a patch against file.c from 4.20 to fix the command-line parsing. It does two things: first, it adds "e:" to the short options string; secondly, it changes the argument flag of the long option 'exclude' from 0 to 1 (because --exclude takes an argument). -- http://rrt.sc3d.org/ | think tank, n. a safe container for noxious gases --8323328-1818907906-1174659822=:5387 Content-Type: TEXT/x-diff; name=file.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=file.patch LS0tIGZpbGUtNC4yMC9zcmMvZmlsZS5jCTIwMDctMDEtMjUgMjE6MDU6NDYu MDAwMDAwMDAwICswMDAwDQorKysgZmlsZS00LjIwLXJydC9zcmMvZmlsZS5j CTIwMDctMDMtMjMgMTQ6MTk6MjQuMDAwMDAwMDAwICswMDAwDQpAQCAtMTI4 LDcgKzEyOCw3IEBADQogCWNoYXIgKmhvbWUsICp1c2VybWFnaWM7DQogCXN0 cnVjdCBzdGF0IHNiOw0KIAlzdGF0aWMgY29uc3QgY2hhciBobWFnaWNbXSA9 ICIvLm1hZ2ljIjsNCi0jZGVmaW5lIE9QVFNUUklORwkiYmNDZGY6RjpoaWtM bTpuTnByc3Z6MCINCisjZGVmaW5lIE9QVFNUUklORwkiYmNDZGU6ZjpGOmhp a0xtOm5OcHJzdnowIg0KICNpZmRlZiBIQVZFX0dFVE9QVF9MT05HDQogCWlu dCBsb25naW5kZXg7DQogCXN0YXRpYyBjb25zdCBzdHJ1Y3Qgb3B0aW9uIGxv bmdfb3B0aW9uc1tdID0NCkBAIC0xMzgsNyArMTM4LDcgQEANCiAJCXsiYnJp ZWYiLCAwLCAwLCAnYid9LA0KIAkJeyJjaGVja2luZy1wcmludG91dCIsIDAs IDAsICdjJ30sDQogCQl7ImRlYnVnIiwgMCwgMCwgJ2QnfSwNCi0JCXsiZXhj bHVkZSIsIDAsIDAsICdlJyB9LA0KKwkJeyJleGNsdWRlIiwgMSwgMCwgJ2Un IH0sDQogCQl7ImZpbGVzLWZyb20iLCAxLCAwLCAnZid9LA0KIAkJeyJzZXBh cmF0b3IiLCAxLCAwLCAnRid9LA0KIAkJeyJtaW1lIiwgMCwgMCwgJ2knfSwN Cg== --8323328-1818907906-1174659822=:5387--   Information forwarded to debian-bugs-dist@lists.debian.org, Michael Piefel <piefel@debian.org>:
Bug#38542; Package file.   debian-bugs-dist@lists.debian.orgMichael Piefel  X-Loop: owner@bugs.debian.org Subject: Bug#38542: Further brokenness in 4.20 man page: token -> tokens Reply-To: Reuben Thomas , 38542@bugs.debian.org Resent-From: Reuben Thomas Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Michael Piefel Resent-Date: Fri, 23 Mar 2007 14:39:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 38542 X-Debian-PR-Package: file X-Debian-PR-Keywords: X-Debian-PR-Source: file Received: via spool by 38542-submit@bugs.debian.org id=B38542.117465993812946 (code B ref 38542); Fri, 23 Mar 2007 14:39:02 +0000 Received: (at 38542) by bugs.debian.org; 23 Mar 2007 14:25:38 +0000 Received: from pelican.sc3d.org ([216.184.201.86]) by rietz.debian.org with esmtp (Exim 4.50) id 1HUki1-0002dG-Q6 for 38542@bugs.debian.org; Fri, 23 Mar 2007 14:25:38 +0000 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=hzhjtxM90REaKot3bDTkOLNXJDy8DUv6XEjjPr1T3NrhK5cmAjZr1kgngo81gXuU28WJ9TMqy1x6Y6iyowJl/bxt7eAL8nFC9UpiYPw13FKy+SCsPVAWZbB/u/+wKNEpfYIPxF75VJWRXOEgeUdSMPnaQGKUMsrEIQ3moK1bsv4= Received: from [192.168.0.133] (80-41-35-80.dynamic.dsl.as9105.com [80.41.35.80]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id CRW67206 for <38542@bugs.debian.org>; Fri, 23 Mar 2007 10:25:06 -0400 Date: Fri, 23 Mar 2007 14:24:25 +0000 (GMT) From: Reuben Thomas X-X-Sender: rrt@localhost.localdomain To: 38542@bugs.debian.org In-Reply-To: Message-ID: References: <20070323135501.8789.63078.reportbug@localhost.localdomain> <19990529231445.A2898@portaloo.> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=0.5 required=4.0 tests=BAYES_30,RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 Under the documentation for the -e switch, one of the options is listed as "token", but in the code it's "tokens". -- http://rrt.sc3d.org/ memoir, n. a lie that flatters the author's ego and the reader's intellect   Acknowledgement sent to Reuben Thomas <rrt@sc3d.org>:
Extra info received and forwarded to list. Copy sent to Michael Piefel <piefel@debian.org>.   -t  Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.417 (Entity 5.417) Content-Type: text/plain; charset=utf-8 X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Reuben Thomas Subject: Bug#38542: Info received (Further brokenness in 4.20 man page: token -> tokens) Message-Id: References: <19990529231445.A2898@portaloo.> X-Debian-PR-Message: ack-info 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Reply-To: 38542@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Michael Piefel If you wish to continue to submit further information on this problem, please send it to 38542@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 38542) by bugs.debian.org; 23 Mar 2007 14:25:38 +0000 From SRS0=e35e8c3bb2da7e03700d50eb0d09f9f5efcf0db3=283=sc3d.org=rrt@sc3d.org Fri Mar 23 14:25:38 2007 Return-path: Received: from pelican.sc3d.org ([216.184.201.86]) by rietz.debian.org with esmtp (Exim 4.50) id 1HUki1-0002dG-Q6 for 38542@bugs.debian.org; Fri, 23 Mar 2007 14:25:38 +0000 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=hzhjtxM90REaKot3bDTkOLNXJDy8DUv6XEjjPr1T3NrhK5cmAjZr1kgngo81gXuU28WJ9TMqy1x6Y6iyowJl/bxt7eAL8nFC9UpiYPw13FKy+SCsPVAWZbB/u/+wKNEpfYIPxF75VJWRXOEgeUdSMPnaQGKUMsrEIQ3moK1bsv4= Received: from [192.168.0.133] (80-41-35-80.dynamic.dsl.as9105.com [80.41.35.80]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id CRW67206 for <38542@bugs.debian.org>; Fri, 23 Mar 2007 10:25:06 -0400 Date: Fri, 23 Mar 2007 14:24:25 +0000 (GMT) From: Reuben Thomas X-X-Sender: rrt@localhost.localdomain To: 38542@bugs.debian.org Subject: Further brokenness in 4.20 man page: token -> tokens In-Reply-To: Message-ID: References: <20070323135501.8789.63078.reportbug@localhost.localdomain> <19990529231445.A2898@portaloo.> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=0.5 required=4.0 tests=BAYES_30,RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 Under the documentation for the -e switch, one of the options is listed as "token", but in the code it's "tokens". -- http://rrt.sc3d.org/ memoir, n. a lie that flatters the author's ego and the reader's intellect   Information forwarded to debian-bugs-dist@lists.debian.org, Michael Piefel <piefel@debian.org>:
Bug#38542; Package file.   debian-bugs-dist@lists.debian.orgMichael Piefel  X-Loop: owner@bugs.debian.org Subject: Bug#38542: file: Fix for -e, which is broken in 4.20 Reply-To: christos@zoulas.com (Christos Zoulas), 38542@bugs.debian.org Resent-From: christos@zoulas.com (Christos Zoulas) Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Michael Piefel Resent-Date: Fri, 23 Mar 2007 15:21:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 38542 X-Debian-PR-Package: file X-Debian-PR-Keywords: X-Debian-PR-Source: file Received: via spool by 38542-submit@bugs.debian.org id=B38542.117466306628697 (code B ref 38542); Fri, 23 Mar 2007 15:21:01 +0000 Received: (at 38542) by bugs.debian.org; 23 Mar 2007 15:17:46 +0000 Received: from rebar.astron.com ([38.117.134.202] ident=postfix) by rietz.debian.org with esmtp (Exim 4.50) id 1HUlWU-0007Pi-4A for 38542@bugs.debian.org; Fri, 23 Mar 2007 15:17:46 +0000 Received: by rebar.astron.com (Postfix, from userid 10080) id DDB2C56407; Fri, 23 Mar 2007 11:17:44 -0400 (EDT) From: christos@zoulas.com (Christos Zoulas) Date: Fri, 23 Mar 2007 11:17:44 -0400 In-Reply-To: from Reuben Thomas (Mar 23, 2:23pm) Organization: Astron Software X-Mailer: Mail User's Shell (7.2.6 beta(4.pl1)+dynamic 20000103) To: Reuben Thomas , 38542@bugs.debian.org Message-Id: <20070323151744.DDB2C56407@rebar.astron.com> X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no version=2.60-bugs.debian.org_2005_01_02 On Mar 23, 2:23pm, rrt@sc3d.org (Reuben Thomas) wrote: -- Subject: file: Fix for -e, which is broken in 4.20 | It turns out that although the feature has been added to allow the various | built-in tests to be turned off, it's broken in 4.20 (I don't think it can | be made to work, and trying to use it can make file segfault). | | I attach a patch against file.c from 4.20 to fix the command-line parsing. | It does two things: first, it adds "e:" to the short options string; | secondly, it changes the argument flag of the long option 'exclude' from 0 | to 1 (because --exclude takes an argument). Thanks! I fixed it already... christos   Acknowledgement sent to christos@zoulas.com (Christos Zoulas):
Extra info received and forwarded to list. Copy sent to Michael Piefel <piefel@debian.org>.   -t  Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.417 (Entity 5.417) Content-Type: text/plain; charset=utf-8 X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: christos@zoulas.com (Christos Zoulas) Subject: Bug#38542: Info received (file: Fix for -e, which is broken in 4.20) Message-Id: References: <20070323151744.DDB2C56407@rebar.astron.com> <19990529231445.A2898@portaloo.> X-Debian-PR-Message: ack-info 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Reply-To: 38542@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Michael Piefel If you wish to continue to submit further information on this problem, please send it to 38542@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 38542) by bugs.debian.org; 23 Mar 2007 15:17:46 +0000 From christos@zoulas.com Fri Mar 23 15:17:46 2007 Return-path: Received: from rebar.astron.com ([38.117.134.202] ident=postfix) by rietz.debian.org with esmtp (Exim 4.50) id 1HUlWU-0007Pi-4A for 38542@bugs.debian.org; Fri, 23 Mar 2007 15:17:46 +0000 Received: by rebar.astron.com (Postfix, from userid 10080) id DDB2C56407; Fri, 23 Mar 2007 11:17:44 -0400 (EDT) From: christos@zoulas.com (Christos Zoulas) Date: Fri, 23 Mar 2007 11:17:44 -0400 In-Reply-To: from Reuben Thomas (Mar 23, 2:23pm) Organization: Astron Software X-Mailer: Mail User's Shell (7.2.6 beta(4.pl1)+dynamic 20000103) To: Reuben Thomas , 38542@bugs.debian.org Subject: Re: file: Fix for -e, which is broken in 4.20 Message-Id: <20070323151744.DDB2C56407@rebar.astron.com> X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no version=2.60-bugs.debian.org_2005_01_02 On Mar 23, 2:23pm, rrt@sc3d.org (Reuben Thomas) wrote: -- Subject: file: Fix for -e, which is broken in 4.20 | It turns out that although the feature has been added to allow the various | built-in tests to be turned off, it's broken in 4.20 (I don't think it can | be made to work, and trying to use it can make file segfault). | | I attach a patch against file.c from 4.20 to fix the command-line parsing. | It does two things: first, it adds "e:" to the short options string; | secondly, it changes the argument flag of the long option 'exclude' from 0 | to 1 (because --exclude takes an argument). Thanks! I fixed it already... christos   Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Baumann <daniel@debian.org>:
Bug#38542; Package file.   debian-bugs-dist@lists.debian.orgDaniel Baumann  X-Loop: owner@bugs.debian.org Subject: Bug#38542: file: My latest patch on this bug still needs applying Reply-To: Reuben Thomas , 38542@bugs.debian.org Resent-From: Reuben Thomas Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Daniel Baumann Resent-Date: Wed, 28 Mar 2007 12:45:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 38542 X-Debian-PR-Package: file X-Debian-PR-Keywords: X-Debian-PR-Source: file Received: via spool by 38542-submit@bugs.debian.org id=B38542.117508575329787 (code B ref 38542); Wed, 28 Mar 2007 12:45:02 +0000 Received: (at 38542) by bugs.debian.org; 28 Mar 2007 12:42:33 +0000 Received: from pelican.sc3d.org ([216.184.201.86]) by rietz.debian.org with esmtp (Exim 4.50) id 1HWXU0-0007dK-Tz for 38542@bugs.debian.org; Wed, 28 Mar 2007 12:42:33 +0000 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=81ybmrRK6trCcqyhyx5f4ZtkZYhYf/2OIV9X+QDOeUTIFd6q+aox14mMfCKA3ngWDToq6YEJVE0va2VdTimZAQ8LEBHlTYZwfLXIIzy2b2QqXetR+bXScHEVEA9Qy1n3rSF1pZlLghqSDBZw5rBrSb39fFAsv1mzilr7nbXL8oo= Received: from drom (80-43-100-196.dynamic.dsl.as9105.com [80.43.100.196]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP id HPS09402; Wed, 28 Mar 2007 08:42:02 -0400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Reuben Thomas To: Debian Bug Tracking System <38542@bugs.debian.org> Message-ID: <20070328124200.6198.72925.reportbug@localhost.localdomain> X-Mailer: reportbug 3.33 Date: Wed, 28 Mar 2007 13:42:00 +0100 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE, RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 Package: file Version: 4.20-3 Followup-For: Bug #38542 In case there's some confusion, although Christos has fixed the bug upstream, the 4.20 sources have a buggy -e switch, and my patch (or equivalent) needs to be applied in order to get it to work. Since it's trivial, and also since you've put so much work in applying other patches to 4.20, it would be really good if you could also make this switch work. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages file depends on: ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libmagic1 4.20-3 File type determination library us file recommends no packages. -- no debconf information   Acknowledgement sent to Reuben Thomas <rrt@sc3d.org>:
Extra info received and forwarded to list. Copy sent to Daniel Baumann <daniel@debian.org>.   -t  Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.417 (Entity 5.417) Content-Type: text/plain; charset=utf-8 X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Reuben Thomas Subject: Bug#38542: Info received (file: My latest patch on this bug still needs applying) Message-Id: References: <20070328124200.6198.72925.reportbug@localhost.localdomain> <19990529231445.A2898@portaloo.> X-Debian-PR-Message: ack-info 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Reply-To: 38542@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Daniel Baumann If you wish to continue to submit further information on this problem, please send it to 38542@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 38542) by bugs.debian.org; 28 Mar 2007 12:42:33 +0000 From SRS0=8277a243d8bd2e5bf6764859c33917d6c9f1b369=288=sc3d.org=rrt@sc3d.org Wed Mar 28 12:42:33 2007 Return-path: Received: from pelican.sc3d.org ([216.184.201.86]) by rietz.debian.org with esmtp (Exim 4.50) id 1HWXU0-0007dK-Tz for 38542@bugs.debian.org; Wed, 28 Mar 2007 12:42:33 +0000 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=81ybmrRK6trCcqyhyx5f4ZtkZYhYf/2OIV9X+QDOeUTIFd6q+aox14mMfCKA3ngWDToq6YEJVE0va2VdTimZAQ8LEBHlTYZwfLXIIzy2b2QqXetR+bXScHEVEA9Qy1n3rSF1pZlLghqSDBZw5rBrSb39fFAsv1mzilr7nbXL8oo= Received: from drom (80-43-100-196.dynamic.dsl.as9105.com [80.43.100.196]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP id HPS09402; Wed, 28 Mar 2007 08:42:02 -0400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Reuben Thomas To: Debian Bug Tracking System <38542@bugs.debian.org> Subject: file: My latest patch on this bug still needs applying Message-ID: <20070328124200.6198.72925.reportbug@localhost.localdomain> X-Mailer: reportbug 3.33 Date: Wed, 28 Mar 2007 13:42:00 +0100 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE, RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 Package: file Version: 4.20-3 Followup-For: Bug #38542 In case there's some confusion, although Christos has fixed the bug upstream, the 4.20 sources have a buggy -e switch, and my patch (or equivalent) needs to be applied in order to get it to work. Since it's trivial, and also since you've put so much work in applying other patches to 4.20, it would be really good if you could also make this switch work. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages file depends on: ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libmagic1 4.20-3 File type determination library us file recommends no packages. -- no debconf information   Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Baumann <daniel@debian.org>:
Bug#38542; Package file.   debian-bugs-dist@lists.debian.orgDaniel Baumann  X-Loop: owner@bugs.debian.org Subject: Bug#38542: status in file 4.21-2 Reply-To: Touko Korpela , 38542@bugs.debian.org Resent-From: Touko Korpela Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Daniel Baumann Resent-Date: Sun, 26 Aug 2007 23:21:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 38542 X-Debian-PR-Package: file X-Debian-PR-Keywords: X-Debian-PR-Source: file Received: via spool by 38542-submit@bugs.debian.org id=B38542.118817026921665 (code B ref 38542); Sun, 26 Aug 2007 23:21:02 +0000 Received: (at 38542) by bugs.debian.org; 26 Aug 2007 23:17:49 +0000 Received: from outbound-mx1.phnet.fi ([62.165.128.250]) by rietz.debian.org with esmtp (Exim 4.50) id 1IPRMa-0005d3-Vg for 38542@bugs.debian.org; Sun, 26 Aug 2007 23:17:49 +0000 Received: from localhost (localhost [127.0.0.1]) by outbound-mx1.phnet.fi (Postfix) with ESMTP id F261B3AE30E; Mon, 27 Aug 2007 02:17:44 +0300 (EEST) X-Virus-Scanned: amavisd-new at outbound-mx1.phnet.fi Received: from outbound-mx1.phnet.fi ([127.0.0.1]) by localhost (outbound-mx1.phnet.fi [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZfAVW1MCR3RA; Mon, 27 Aug 2007 02:17:44 +0300 (EEST) Received: from norsu.vuoristo.local (bb-81-175-158-48.dsl.phnet.fi [81.175.158.48]) by outbound-mx1.phnet.fi (Postfix) with ESMTP id CA3003AE289; Mon, 27 Aug 2007 02:17:44 +0300 (EEST) Received: from touko by norsu.vuoristo.local with local (Exim 4.67) (envelope-from ) id 1IPRMa-0002Ci-4X; Mon, 27 Aug 2007 02:17:48 +0300 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Touko Korpela To: Debian Bug Tracking System <38542@bugs.debian.org> Message-ID: <20070826231748.8376.83830.reportbug@norsu.vuoristo.local> X-Mailer: reportbug 3.39 Date: Mon, 27 Aug 2007 02:17:48 +0300 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE, RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 Package: file Followup-For: Bug #38542 Now false "C++ program text" matches don't happen. wine.conf example is still identified as "Lisp/Scheme program text" This issue is still there: >Under the documentation for the -e switch, one of the options is listed >as "token", but in the code it's "tokens". Versions of packages file depends on: ii libc6 2.6.1-1 GNU C Library: Shared libraries ii libmagic1 4.21-2 File type determination library us   Acknowledgement sent to Touko Korpela <tkorpela@phnet.fi>:
Extra info received and forwarded to list. Copy sent to Daniel Baumann <daniel@debian.org>.   -t  Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.417 (Entity 5.417) Content-Type: text/plain; charset=utf-8 X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Touko Korpela Subject: Bug#38542: Info received (status in file 4.21-2) Message-Id: References: <20070826231748.8376.83830.reportbug@norsu.vuoristo.local> <19990529231445.A2898@portaloo.> X-Debian-PR-Message: ack-info 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Reply-To: 38542@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Daniel Baumann If you wish to continue to submit further information on this problem, please send it to 38542@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 38542) by bugs.debian.org; 26 Aug 2007 23:17:49 +0000 From tkorpela@phnet.fi Sun Aug 26 23:17:49 2007 Return-path: Received: from outbound-mx1.phnet.fi ([62.165.128.250]) by rietz.debian.org with esmtp (Exim 4.50) id 1IPRMa-0005d3-Vg for 38542@bugs.debian.org; Sun, 26 Aug 2007 23:17:49 +0000 Received: from localhost (localhost [127.0.0.1]) by outbound-mx1.phnet.fi (Postfix) with ESMTP id F261B3AE30E; Mon, 27 Aug 2007 02:17:44 +0300 (EEST) X-Virus-Scanned: amavisd-new at outbound-mx1.phnet.fi Received: from outbound-mx1.phnet.fi ([127.0.0.1]) by localhost (outbound-mx1.phnet.fi [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZfAVW1MCR3RA; Mon, 27 Aug 2007 02:17:44 +0300 (EEST) Received: from norsu.vuoristo.local (bb-81-175-158-48.dsl.phnet.fi [81.175.158.48]) by outbound-mx1.phnet.fi (Postfix) with ESMTP id CA3003AE289; Mon, 27 Aug 2007 02:17:44 +0300 (EEST) Received: from touko by norsu.vuoristo.local with local (Exim 4.67) (envelope-from ) id 1IPRMa-0002Ci-4X; Mon, 27 Aug 2007 02:17:48 +0300 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Touko Korpela To: Debian Bug Tracking System <38542@bugs.debian.org> Subject: status in file 4.21-2 Message-ID: <20070826231748.8376.83830.reportbug@norsu.vuoristo.local> X-Mailer: reportbug 3.39 Date: Mon, 27 Aug 2007 02:17:48 +0300 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE, RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02 Package: file Followup-For: Bug #38542 Now false "C++ program text" matches don't happen. wine.conf example is still identified as "Lisp/Scheme program text" This issue is still there: >Under the documentation for the -e switch, one of the options is listed >as "token", but in the code it's "tokens". Versions of packages file depends on: ii libc6 2.6.1-1 GNU C Library: Shared libraries ii libmagic1 4.21-2 File type determination library us   Reply sent to daniel@debian.org:
You have taken responsibility.   -t  MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: daniel@debian.org Subject: Bug#38542: marked as done (file: false positives (text file guessing weak)) Message-ID: References: <481C454E.4050204@debian.org> <19990529231445.A2898@portaloo.> X-Debian-PR-Message: closed 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Content-Type: multipart/mixed; boundary="----------=_1209812438-19701-0" This is a multi-part message in MIME format... ------------=_1209812438-19701-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 03 May 2008 12:58:22 +0200 with message-id <481C454E.4050204@debian.org> and subject line file: fixed in 4.24-1 has caused the Debian Bug report #38542, regarding file: false positives (text file guessing weak) to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) --=20 38542: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D38542 Debian Bug Tracking System Contact owner@bugs.debian.org with problems ------------=_1209812438-19701-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.debian.org; 29 May 1999 23:13:59 +0000 Received: (qmail 13005 invoked from network); 29 May 1999 23:13:59 -0000 Received: from finch-post-10.mail.demon.net (194.217.242.38) by master.debian.org with SMTP; 29 May 1999 23:13:59 -0000 Received: from [158.152.142.74] (helo=smack.hairnet) by finch-post-10.mail.demon.net with esmtp (Exim 2.12 #1) id 10nsIf-000Gtz-0A for submit@bugs.debian.org; Sat, 29 May 1999 23:13:58 +0000 Received: from portaloo.hairnet [192.168.0.4] (mail) by smack.hairnet with esmtp (Exim 2.05 #1 (Debian)) id 10nrO8-0002AN-00; Sat, 29 May 1999 23:15:32 +0100 Received: from edward by portaloo.hairnet with local (Exim 3.01 #1 (Debian)) id 10nrNN-0000lM-00; Sat, 29 May 1999 23:14:45 +0100 Date: Sat, 29 May 1999 23:14:45 +0100 From: Edward Betts To: submit@bugs.debian.org Subject: file: false positives Message-ID: <19990529231445.A2898@portaloo.> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Sender: Edward Betts Package: file Version: 3.27-1 Severity: Wishlist $ file /etc/* bootptab: C++ program text protocols: C++ program text wine.conf: Lisp/Scheme program text I could supply the files but they are all standard and would just fill up the Bug Tracking System. Here is the first six lines of each: ==> /etc/bootptab <== # /etc/bootptab: database for bootp server (/usr/sbin/bootpd) # # Blank lines and lines beginning with '#' are ignored. # # Legend: (see bootptab.5) # first field -- hostname (not indented) ==> /etc/protocols <== # /etc/protocols: # $Id: protocols,v 1.1 1995/02/24 01:09:41 imurdock Exp $ # # Internet (IP) protocols # # from: @(#)protocols 5.1 (Berkeley) 4/17/89 ==> /etc/wine.conf <== ;; ;; MS-DOS drives configuration ;; ;; Each section has the following format: ;; [Drive X] ;; Path=xxx (Unix path for drive root) No clues there. ------------=_1209812438-19701-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 38542-done) by bugs.debian.org; 3 May 2008 10:58:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.1.4-bugs.debian.org_2005_01_02 (2006-07-26) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.0 tests=BAYES_00,FORGED_RCVD_HELO, FROMDEVELOPER autolearn=no version=3.1.4-bugs.debian.org_2005_01_02 Return-path: Received: from static.88-198-44-35.clients.your-server.de ([88.198.44.35] helo=mail.unable-to-package.org) by rietz.debian.org with esmtp (Exim 4.63) (envelope-from ) id 1JsFRu-0003kS-Fd; Sat, 03 May 2008 10:58:38 +0000 Received: from daniel.127011.localhost (254-45-239-77-pool.cable.fcom.ch [77.239.45.254]) by mail.unable-to-package.org (Postfix) with ESMTP id 5C6CE32FF2; Sat, 3 May 2008 10:51:21 +0000 (UTC) Message-ID: <481C454E.4050204@debian.org> Date: Sat, 03 May 2008 12:58:22 +0200 From: Daniel Baumann Reply-To: daniel@debian.org Organization: Debian GNU/Linux - The Universal Operating System User-Agent: Mozilla-Thunderbird 2.0.0.12 (X11/20080420) MIME-Version: 1.0 To: 38542-done@bugs.debian.org, 119193-done@bugs.debian.org, 129518-done@bugs.debian.org, 136534-done@bugs.debian.org, 209043-done@bugs.debian.org, 217923-done@bugs.debian.org, 223340-done@bugs.debian.org, 246780-done@bugs.debian.org, 262169-done@bugs.debian.org, 299091-done@bugs.debian.org, 297775-done@bugs.debian.org, 303733-done@bugs.debian.org, 305337-done@bugs.debian.org, 342334-done@bugs.debian.org, 347244-done@bugs.debian.org, 348372-done@bugs.debian.org, 353085-done@bugs.debian.org, 359301-done@bugs.debian.org, 362242-done@bugs.debian.org, 364260-done@bugs.debian.org, 366949-done@bugs.debian.org, 376204-done@bugs.debian.org, 383409-done@bugs.debian.org, 383498-done@bugs.debian.org, 383504-done@bugs.debian.org, 391431-done@bugs.debian.org, 399637-done@bugs.debian.org, 430777-done@bugs.debian.org, 400933-done@bugs.debian.org, 402060-done@bugs.debian.org, 407032-done@bugs.debian.org, 430775-done@bugs.debian.org, 407120-done@bugs.debian.org, 409231-done@bugs.debian.org, 416842-done@bugs.debian.org, 421935-done@bugs.debian.org, 430362-done@bugs.debian.org, 433146-done@bugs.debian.org, 434889-done@bugs.debian.org, 442819-done@bugs.debian.org, 443290-done@bugs.debian.org, 446873-done@bugs.debian.org, 466033-done@bugs.debian.org, 463265-done@bugs.debian.org, 466035-done@bugs.debian.org, 466129-done@bugs.debian.org Subject: file: fixed in 4.24-1 X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Version: 4.24-1 Hi, this bug has been fixed in file 4.24-1, thus closing. Thanks a lot to Reuben Thomas for making this possible in upstream. Regards, Daniel -- Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist Email: daniel.baumann@panthera-systems.net Internet: http://people.panthera-systems.net/~daniel-baumann/ ------------=_1209812438-19701-0--   Notification sent to Edward Betts <edward@debian.org>:
Bug acknowledged by developer.   -t  MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Edward Betts Subject: Bug#38542 closed by Daniel Baumann (reply to daniel@debian.org) (file: fixed in 4.24-1) Message-ID: References: <481C454E.4050204@debian.org> <19990529231445.A2898@portaloo.> X-Debian-PR-Message: they-closed 38542 X-Debian-PR-Package: file X-Debian-PR-Source: file Reply-To: 38542@bugs.debian.org Content-Type: multipart/mixed; boundary="----------=_1209812438-19701-1" This is a multi-part message in MIME format... ------------=_1209812438-19701-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your Bug report which was filed against the file package: #38542: file: false positives (text file guessing weak) It has been closed by Daniel Baumann (reply to daniel@d= ebian.org). Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Daniel Baumann (reply to daniel@debian.org) by replying to this email. --=20 38542: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D38542 Debian Bug Tracking System Contact owner@bugs.debian.org with problems ------------=_1209812438-19701-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 38542-done) by bugs.debian.org; 3 May 2008 10:58:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.1.4-bugs.debian.org_2005_01_02 (2006-07-26) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.0 tests=BAYES_00,FORGED_RCVD_HELO, FROMDEVELOPER autolearn=no version=3.1.4-bugs.debian.org_2005_01_02 Return-path: Received: from static.88-198-44-35.clients.your-server.de ([88.198.44.35] helo=mail.unable-to-package.org) by rietz.debian.org with esmtp (Exim 4.63) (envelope-from ) id 1JsFRu-0003kS-Fd; Sat, 03 May 2008 10:58:38 +0000 Received: from daniel.127011.localhost (254-45-239-77-pool.cable.fcom.ch [77.239.45.254]) by mail.unable-to-package.org (Postfix) with ESMTP id 5C6CE32FF2; Sat, 3 May 2008 10:51:21 +0000 (UTC) Message-ID: <481C454E.4050204@debian.org> Date: Sat, 03 May 2008 12:58:22 +0200 From: Daniel Baumann Reply-To: daniel@debian.org Organization: Debian GNU/Linux - The Universal Operating System User-Agent: Mozilla-Thunderbird 2.0.0.12 (X11/20080420) MIME-Version: 1.0 To: 38542-done@bugs.debian.org, 119193-done@bugs.debian.org, 129518-done@bugs.debian.org, 136534-done@bugs.debian.org, 209043-done@bugs.debian.org, 217923-done@bugs.debian.org, 223340-done@bugs.debian.org, 246780-done@bugs.debian.org, 262169-done@bugs.debian.org, 299091-done@bugs.debian.org, 297775-done@bugs.debian.org, 303733-done@bugs.debian.org, 305337-done@bugs.debian.org, 342334-done@bugs.debian.org, 347244-done@bugs.debian.org, 348372-done@bugs.debian.org, 353085-done@bugs.debian.org, 359301-done@bugs.debian.org, 362242-done@bugs.debian.org, 364260-done@bugs.debian.org, 366949-done@bugs.debian.org, 376204-done@bugs.debian.org, 383409-done@bugs.debian.org, 383498-done@bugs.debian.org, 383504-done@bugs.debian.org, 391431-done@bugs.debian.org, 399637-done@bugs.debian.org, 430777-done@bugs.debian.org, 400933-done@bugs.debian.org, 402060-done@bugs.debian.org, 407032-done@bugs.debian.org, 430775-done@bugs.debian.org, 407120-done@bugs.debian.org, 409231-done@bugs.debian.org, 416842-done@bugs.debian.org, 421935-done@bugs.debian.org, 430362-done@bugs.debian.org, 433146-done@bugs.debian.org, 434889-done@bugs.debian.org, 442819-done@bugs.debian.org, 443290-done@bugs.debian.org, 446873-done@bugs.debian.org, 466033-done@bugs.debian.org, 463265-done@bugs.debian.org, 466035-done@bugs.debian.org, 466129-done@bugs.debian.org Subject: file: fixed in 4.24-1 X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Version: 4.24-1 Hi, this bug has been fixed in file 4.24-1, thus closing. Thanks a lot to Reuben Thomas for making this possible in upstream. Regards, Daniel -- Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist Email: daniel.baumann@panthera-systems.net Internet: http://people.panthera-systems.net/~daniel-baumann/ ------------=_1209812438-19701-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.debian.org; 29 May 1999 23:13:59 +0000 Received: (qmail 13005 invoked from network); 29 May 1999 23:13:59 -0000 Received: from finch-post-10.mail.demon.net (194.217.242.38) by master.debian.org with SMTP; 29 May 1999 23:13:59 -0000 Received: from [158.152.142.74] (helo=smack.hairnet) by finch-post-10.mail.demon.net with esmtp (Exim 2.12 #1) id 10nsIf-000Gtz-0A for submit@bugs.debian.org; Sat, 29 May 1999 23:13:58 +0000 Received: from portaloo.hairnet [192.168.0.4] (mail) by smack.hairnet with esmtp (Exim 2.05 #1 (Debian)) id 10nrO8-0002AN-00; Sat, 29 May 1999 23:15:32 +0100 Received: from edward by portaloo.hairnet with local (Exim 3.01 #1 (Debian)) id 10nrNN-0000lM-00; Sat, 29 May 1999 23:14:45 +0100 Date: Sat, 29 May 1999 23:14:45 +0100 From: Edward Betts To: submit@bugs.debian.org Subject: file: false positives Message-ID: <19990529231445.A2898@portaloo.> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Sender: Edward Betts Package: file Version: 3.27-1 Severity: Wishlist $ file /etc/* bootptab: C++ program text protocols: C++ program text wine.conf: Lisp/Scheme program text I could supply the files but they are all standard and would just fill up the Bug Tracking System. Here is the first six lines of each: ==> /etc/bootptab <== # /etc/bootptab: database for bootp server (/usr/sbin/bootpd) # # Blank lines and lines beginning with '#' are ignored. # # Legend: (see bootptab.5) # first field -- hostname (not indented) ==> /etc/protocols <== # /etc/protocols: # $Id: protocols,v 1.1 1995/02/24 01:09:41 imurdock Exp $ # # Internet (IP) protocols # # from: @(#)protocols 5.1 (Berkeley) 4/17/89 ==> /etc/wine.conf <== ;; ;; MS-DOS drives configuration ;; ;; Each section has the following format: ;; [Drive X] ;; Path=xxx (Unix path for drive root) No clues there. ------------=_1209812438-19701-1--   Received: (at 38542-done) by bugs.debian.org; 3 May 2008 10:58:39 +0000 From daniel@debian.org Sat May 03 10:58:39 2008 X-Spam-Checker-Version: SpamAssassin 3.1.4-bugs.debian.org_2005_01_02 (2006-07-26) on rietz.debian.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.0 tests=BAYES_00,FORGED_RCVD_HELO, FROMDEVELOPER autolearn=no version=3.1.4-bugs.debian.org_2005_01_02 Return-path: Received: from static.88-198-44-35.clients.your-server.de ([88.198.44.35] helo=mail.unable-to-package.org) by rietz.debian.org with esmtp (Exim 4.63) (envelope-from ) id 1JsFRu-0003kS-Fd; Sat, 03 May 2008 10:58:38 +0000 Received: from daniel.127011.localhost (254-45-239-77-pool.cable.fcom.ch [77.239.45.254]) by mail.unable-to-package.org (Postfix) with ESMTP id 5C6CE32FF2; Sat, 3 May 2008 10:51:21 +0000 (UTC) Message-ID: <481C454E.4050204@debian.org> Date: Sat, 03 May 2008 12:58:22 +0200 From: Daniel Baumann Reply-To: daniel@debian.org Organization: Debian GNU/Linux - The Universal Operating System User-Agent: Mozilla-Thunderbird 2.0.0.12 (X11/20080420) MIME-Version: 1.0 To: 38542-done@bugs.debian.org, 119193-done@bugs.debian.org, 129518-done@bugs.debian.org, 136534-done@bugs.debian.org, 209043-done@bugs.debian.org, 217923-done@bugs.debian.org, 223340-done@bugs.debian.org, 246780-done@bugs.debian.org, 262169-done@bugs.debian.org, 299091-done@bugs.debian.org, 297775-done@bugs.debian.org, 303733-done@bugs.debian.org, 305337-done@bugs.debian.org, 342334-done@bugs.debian.org, 347244-done@bugs.debian.org, 348372-done@bugs.debian.org, 353085-done@bugs.debian.org, 359301-done@bugs.debian.org, 362242-done@bugs.debian.org, 364260-done@bugs.debian.org, 366949-done@bugs.debian.org, 376204-done@bugs.debian.org, 383409-done@bugs.debian.org, 383498-done@bugs.debian.org, 383504-done@bugs.debian.org, 391431-done@bugs.debian.org, 399637-done@bugs.debian.org, 430777-done@bugs.debian.org, 400933-done@bugs.debian.org, 402060-done@bugs.debian.org, 407032-done@bugs.debian.org, 430775-done@bugs.debian.org, 407120-done@bugs.debian.org, 409231-done@bugs.debian.org, 416842-done@bugs.debian.org, 421935-done@bugs.debian.org, 430362-done@bugs.debian.org, 433146-done@bugs.debian.org, 434889-done@bugs.debian.org, 442819-done@bugs.debian.org, 443290-done@bugs.debian.org, 446873-done@bugs.debian.org, 466033-done@bugs.debian.org, 463265-done@bugs.debian.org, 466035-done@bugs.debian.org, 466129-done@bugs.debian.org Subject: file: fixed in 4.24-1 X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Version: 4.24-1 Hi, this bug has been fixed in file 4.24-1, thus closing. Thanks a lot to Reuben Thomas for making this possible in upstream. Regards, Daniel -- Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist Email: daniel.baumann@panthera-systems.net Internet: http://people.panthera-systems.net/~daniel-baumann/