Your message dated Sat, 26 Jul 2008 01:22:04 +0100 (BST)
with message-id <[EMAIL PROTECTED]>
and subject line This is a misunderstanding, not a bug
has caused the Debian Bug report #470030,
regarding magic file algorithm.
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 [EMAIL PROTECTED]
immediately.)


-- 
470030: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470030
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: file
Version: 4.17-5etch3
Severity: minor


The algorithm which make iteration on each rule does not work always
the same. I observed this with the two following examples:

0       string/cb       \<?xml                  XML document text
0       string          \<?xml\ version "       XML
0       string          \<?xml\ version="       XML
>15     string          >\0                     %.3s document text

gives XML 1.0 document
This mean that rule 3 and 4 override rule 1.

when
0       string          Rar!            RAR archive data,
>44     byte            x               v%0x,
>35     byte            0               os: MS-DOS
>35     byte            1               os: OS/2
>35     byte            2               os: Win32
displays 
RAR archive data, v1d, os: Win32.
This mean that rule 5 does not override rules 1 and 2.

Why does not it behave the same way?




-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-k7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages file depends on:
ii  libc6                  2.3.6.ds1-13etch4 GNU C Library: Shared libraries
ii  libmagic1              4.17-5etch3       File type determination library us

file recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Package: file
Version: 4.17-5etch3

Please read the man page magic(5). The way the rules work is explained there. Basically, when a rule at level n matches, all the rules at level n+1 are tried. This means that only one top-level rule ever matches, but multiple lower-level rules can match (for the given top-level match).

--
http://rrt.sc3d.org/ | plagiarism, n.  the mind burgles


--- End Message ---

Reply via email to