]> git.pld-linux.org Git - packages/file.git/blob - file-debian.patch
- up to 4.06, updated debian patch (from 4.06-1)
[packages/file.git] / file-debian.patch
1 --- file-4.06.orig/doc/file.man
2 +++ file-4.06/doc/file.man
3 @@ -1,4 +1,4 @@
4 -.TH FILE __CSECTION__ "Copyright but distributable"
5 +.TH FILE __CSECTION__ "July 2003" "Debian/GNU Linux" "Copyrighted but distributable"
6  .\" $Id$
7  .SH NAME
8  file
9 @@ -56,10 +56,9 @@
10  meaning anything else (data is usually `binary' or non-printable).
11  Exceptions are well-known file formats (core files, tar archives)
12  that are known to contain binary data.
13 -When modifying the file
14 -.I __MAGIC__
15 -or the program itself, 
16 -.B "preserve these keywords" .
17 +When adding local definitions to
18 +.IR /etc/magic ,
19 +.BR "preserve these keywords" .
20  People depend on knowing that all the readable files in a directory
21  have the word ``text'' printed.
22  Don't do as Berkeley did and change ``shell commands text''
23 @@ -98,7 +97,9 @@
24  The concept of `magic number' has been applied by extension to data files.
25  Any file with some invariant identifier at a small fixed
26  offset into the file can usually be described in this way.
27 -The information identifying these files is read from the compiled
28 +The information identifying these files is read from
29 +.I /etc/magic
30 +and the compiled
31  magic file
32  .I __MAGIC__.mgc ,
33  or 
34 @@ -339,12 +340,6 @@
35  The order of entries in the magic file is significant.
36  Depending on what system you are using, the order that
37  they are put together may be incorrect.
38 -If your old
39 -.B file
40 -command uses a magic file,
41 -keep the old magic file around for comparison purposes
42 -(rename it to 
43 -.IR __MAGIC__.orig ).
44  .SH EXAMPLES
45  .nf
46  $ file file.c file /dev/{wd0a,hda}
47 @@ -498,3 +493,7 @@
48  .B ftp.astron.com
49  in the directory
50  .I /pub/file/file-X.YZ.tar.gz
51 +.PP
52 +This version contains some extensions from
53 +.B Debian
54 +(mainly new magic entries).
55 --- file-4.06.orig/src/Makefile.am
56 +++ file-4.06/src/Makefile.am
57 @@ -4,7 +4,7 @@
58  
59  bin_PROGRAMS = file
60  
61 -AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
62 +AM_CPPFLAGS = -DMAGIC='"/etc/magic:$(MAGIC)"'
63  
64  libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \
65         compress.c is_tar.c readelf.c print.c fsmagic.c \
66 --- file-4.06.orig/src/apprentice.c
67 +++ file-4.06/src/apprentice.c
68 @@ -75,6 +75,10 @@
69  #define MAP_FILE 0
70  #endif
71  
72 +#ifndef MAXPATHLEN
73 +#define        MAXPATHLEN      512
74 +#endif
75 +
76  private int getvalue(struct magic_set *ms, struct magic *, char **);
77  private int hextoint(int);
78  private char *getstr(struct magic_set *, char *, char *, int, int *);
79 --- file-4.06.orig/src/ascmagic.c
80 +++ file-4.06/src/ascmagic.c
81 @@ -41,8 +41,8 @@
82   * international characters, now subsumed into this file.
83   */
84  
85 -#include "magic.h"
86  #include "file.h"
87 +#include "magic.h"
88  #include <stdio.h>
89  #include <string.h>
90  #include <memory.h>
91 --- file-4.06.orig/src/compress.c
92 +++ file-4.06/src/compress.c
93 @@ -37,8 +37,8 @@
94   *     uncompress(method, old, n, newch) - uncompress old into new, 
95   *                                         using method, return sizeof new
96   */
97 -#include "magic.h"
98  #include "file.h"
99 +#include "magic.h"
100  #include <stdio.h>
101  #include <stdlib.h>
102  #ifdef HAVE_UNISTD_H
103 @@ -357,9 +357,23 @@
104         default: /* parent */
105                 (void) close(fdin[0]);
106                 (void) close(fdout[1]);
107 -               if (swrite(fdin[1], old, n) != (ssize_t)n) {
108 -                       n = 0;
109 -                       goto err;
110 +               /* fork again, to avoid blocking because both pipes filled */
111 +               switch (fork()) {
112 +               case 0: /* child */
113 +                   (void) close(fdout[0]);
114 +                   /*fprintf(stderr, "about to write %d bytes to pipe\n", n);*/
115 +                   if (swrite(fdin[1], old, n) != n) {
116 +                       exit(1);
117 +                   }
118 +                   exit(0);
119 +                   /*NOTREACHED*/
120 +               case -1:
121 +                   error("could not fork (%s).\n", strerror(errno));
122 +                   /*NOTREACHED*/
123 +
124 +               /* default: // parent
125 +                    fall through */
126 +
127                 }
128                 (void) close(fdin[1]);
129                 fdin[1] = -1;
130 @@ -369,7 +383,8 @@
131                 }
132                 if ((r = sread(fdout[0], *newch, HOWMANY)) <= 0) {
133                         free(*newch);
134 -                       r = 0;
135 +                       *newch = NULL;
136 +                       n = 0;
137                         goto err;
138                 } else {
139                         n = r;
140 @@ -380,7 +395,9 @@
141                 if (fdin[1] != -1)
142                         (void) close(fdin[1]);
143                 (void) close(fdout[0]);
144 -               (void) wait(NULL);
145 +               /*(void) wait(NULL);*/
146 +               /* reap any terminated children, but don't wait for them. */
147 +               while (waitpid(-1, NULL, WNOHANG) > 0);
148                 return n;
149         }
150  }
151 --- file-4.06.orig/src/file.c
152 +++ file-4.06/src/file.c
153 @@ -34,8 +34,8 @@
154   * file - find type of a file or files - main program.
155   */
156  
157 -#include "magic.h"
158  #include "file.h"
159 +#include "magic.h"
160  
161  #include <stdio.h>
162  #include <stdlib.h>
163 @@ -62,6 +62,10 @@
164  #ifdef HAVE_LOCALE_H
165  #include <locale.h>
166  #endif
167 +#ifdef HAVE_WCHAR_H
168 +#include <wchar.h>
169 +#include <assert.h>
170 +#endif
171  
172  #ifdef HAVE_GETOPT_H
173  #include <getopt.h>    /* for long options (is this portable?)*/
174 @@ -250,9 +254,8 @@
175                         flags |= MAGIC_DEVICES;
176                         break;
177                 case 'v':
178 -                       (void) fprintf(stdout, "%s-%d.%.2d\n", progname,
179 -                                      FILE_VERSION_MAJOR, patchlevel);
180 -                       (void) fprintf(stdout, "magic file from %s\n",
181 +                       (void) fprintf(stdout, "%s-"VERSION"\n", progname);
182 +                       (void) fprintf(stdout, "magic data from %s\n",
183                                        magicfile);
184                         return 1;
185                 case 'z':
186 @@ -303,7 +306,7 @@
187         else {
188                 int i, wid, nw;
189                 for (wid = 0, i = optind; i < argc; i++) {
190 -                       nw = strlen(argv[i]);
191 +                       nw = file_mbswidth(argv[i]);
192                         if (nw > wid)
193                                 wid = nw;
194                 }
195 @@ -353,7 +356,7 @@
196                 }
197  
198                 while (fgets(buf, MAXPATHLEN, f) != NULL) {
199 -                       cwid = strlen(buf) - 1;
200 +                       cwid = file_mbswidth(buf) - 1;
201                         if (cwid > wid)
202                                 wid = cwid;
203                 }
204 @@ -379,7 +382,8 @@
205  
206         if (wid > 0 && !bflag)
207                 (void) printf("%s%s%*s ", std_in ? "/dev/stdin" : inname,
208 -                   separator, (int) (nopad ? 0 : (wid - strlen(inname))), "");
209 +                   separator, (int) (nopad ? 0 : (wid - file_mbswidth(inname))), ""),
210 +               fflush(stdout);
211  
212         type = magic_file(magic, std_in ? NULL : inname);
213         if (type == NULL)
214 @@ -488,3 +492,39 @@
215         exit(0);
216  }
217  #endif
218 +
219 +/* Return the screen width of the given string.
220 + * We assume it's multi-byte and in the current locale.
221 + * If it's not, the value we get will be at least as good
222 + * as the value you get by just calling strlen() */
223 +size_t
224 +file_mbswidth(const char *s)
225 +{
226 +#ifdef HAVE_WCHAR_H
227 +    size_t bytesconsumed, old_n, n, width = 0;
228 +    mbstate_t state;
229 +    wchar_t nextchar;
230 +    memset(&state, 0, sizeof(mbstate_t));
231 +    old_n = n = strlen(s);
232 +
233 +    while (n>0) {
234 +       bytesconsumed = mbrtowc(&nextchar, s, n, &state);
235 +       if (bytesconsumed == (size_t)(-1) || bytesconsumed == (size_t)(-2)) {
236 +           /* Something went wrong, return something reasonable */
237 +           return old_n;
238 +       }
239 +       if (s[0]=='\n')
240 +           /* do what strlen() would do, so that caller is always right */
241 +           width++;
242 +       else
243 +           width += wcwidth(nextchar);
244 +
245 +       s += bytesconsumed, n -= bytesconsumed;
246 +    }
247 +    return width;
248 +
249 +#else
250 +    return strlen(s);
251 +#endif
252 +}
253 +
254 --- file-4.06.orig/src/file.h
255 +++ file-4.06/src/file.h
256 @@ -214,6 +214,7 @@
257  protected void file_magwarn(const char *, ...);
258  protected void file_mdump(struct magic *);
259  protected void file_showstr(FILE *, const char *, size_t);
260 +protected size_t file_mbswidth(const char *);
261  protected const char *file_getbuffer(struct magic_set *);
262  
263  #ifndef HAVE_STRERROR
264 --- file-4.06.orig/src/funcs.c
265 +++ file-4.06/src/funcs.c
266 @@ -26,8 +26,8 @@
267   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
268   * SUCH DAMAGE.
269   */
270 -#include "magic.h"
271  #include "file.h"
272 +#include "magic.h"
273  #include <stdarg.h>
274  #include <stdlib.h>
275  #include <string.h>
276 --- file-4.06.orig/src/is_tar.c
277 +++ file-4.06/src/is_tar.c
278 @@ -42,8 +42,8 @@
279   * for file command by Ian Darwin.
280   */
281  
282 -#include "magic.h"
283  #include "file.h"
284 +#include "magic.h"
285  #include <string.h>
286  #include <ctype.h>
287  #include <sys/types.h>
288 --- file-4.06.orig/src/magic.c
289 +++ file-4.06/src/magic.c
290 @@ -27,8 +27,8 @@
291   * SUCH DAMAGE.
292   */
293  
294 -#include "magic.h"
295  #include "file.h"
296 +#include "magic.h"
297  
298  #include <stdio.h>
299  #include <stdlib.h>
300 @@ -235,11 +235,24 @@
301         else if ((fd = open(inname, O_RDONLY)) < 0) {
302                 /* We cannot open it, but we were able to stat it. */
303                 if (sb.st_mode & 0002)
304 -                       if (file_printf(ms, "writable, ") == -1)
305 -                               return NULL;
306 +                   if (file_printf(ms, "writable, ") == -1) {
307 +                       close(fd);
308 +                       return NULL;
309 +                   }
310                 if (sb.st_mode & 0111)
311 -                       if (file_printf(ms, "executable, ") == -1)
312 -                               return NULL;
313 +                   if (file_printf(ms, "executable, ") == -1) {
314 +                       close(fd);
315 +                       return NULL;
316 +                   }
317 +               if (sb.st_mode & 0100000)
318 +                   if (file_printf(ms, "regular file, ") == -1) {
319 +                       close(fd);
320 +                       return NULL;
321 +                   }
322 +               if (file_printf(ms, "no read permission") == -1) {
323 +                   close(fd);
324 +                   return NULL;
325 +               }
326                 return file_getbuffer(ms);
327         }
328  
329 @@ -257,6 +270,10 @@
330                         (void)close(fd);
331                     goto done;
332                 }
333 +       } else if (nbytes == 1) {
334 +               file_printf(ms, "very short file (no magic)");
335 +               (void)close(fd);
336 +               return ms->o.buf;
337         } else {
338                 buf[nbytes++] = '\0';   /* null-terminate it */
339  #ifdef __EMX__
340 --- file-4.06.orig/src/names.h
341 +++ file-4.06/src/names.h
342 @@ -60,6 +60,7 @@
343  #define        L_HTML  11              /* HTML */
344  #define        L_BCPL  12              /* BCPL */
345  #define        L_M4    13              /* M4 */
346 +#define L_PO   14              /* PO */
347  
348  static const struct {
349         const char *human;
350 @@ -71,7 +72,7 @@
351         { "make commands",                              "text/x-makefile" },
352         { "PL/1 program",                               "text/x-pl1" },
353         { "assembler program",                          "text/x-asm" },
354 -       { "English",                                    "text/plain, English" },
355 +       { "English",                                    "text/plain" },
356         { "Pascal program",                             "text/x-pascal" },
357         { "mail",                                       "text/x-mail" },
358         { "news",                                       "text/x-news" },
359 @@ -79,6 +80,7 @@
360         { "HTML document",                              "text/html", },
361         { "BCPL program",                               "text/x-bcpl" },
362         { "M4 macro language pre-processor",            "text/x-m4" },
363 +       { "PO (gettext message catalogue)",             "text/x-po" },
364         { "cannot happen error on names.h/types",       "error/x-error" },
365         { 0, 0}
366  };
367 @@ -125,6 +127,7 @@
368  } names[] = {
369         /* These must be sorted by eye for optimal hit rate */
370         /* Add to this list only after substantial meditation */
371 +       {"msgid",       L_PO},
372         {"dnl",         L_M4},
373         {"import",      L_JAVA},
374         {"\"libhdr\"",  L_BCPL},
375 --- file-4.06.orig/configure.in
376 +++ file-4.06/configure.in
377 @@ -68,6 +68,7 @@
378  AC_CHECK_HEADERS(locale.h)
379  AC_CHECK_HEADERS(utime.h)
380  AC_CHECK_HEADERS(sys/utime.h)
381 +AC_CHECK_HEADERS(wchar.h)
382  
383  dnl Checks for typedefs, structures, and compiler characteristics.
384  AC_C_CONST
385 --- file-4.06.orig/magic/Header
386 +++ file-4.06/magic/Header
387 @@ -1,5 +1,5 @@
388 -# Magic
389  # Magic data for file(1) command.
390 -# Machine-generated from src/cmd/file/magdir/*; edit there only!
391 -# Format is described in magic(files), where:
392 -# files is 5 on V7 and BSD, 4 on SV, and ?? in the SVID.
393 +# Format is described in magic(5).
394 +# Don't edit this file, edit /etc/magic or send your suggested inclusions to
395 +# this file as a wishlist bug against file (using the reportbug utility).
396 +
397 --- file-4.06.orig/magic/Magdir/amigaos
398 +++ file-4.06/magic/Magdir/amigaos
399 @@ -33,9 +33,10 @@
400  0      string          ARP.            The Holy Noise Module sound file
401  0      string          BeEp\0          JamCracker Module sound file
402  0      string          COSO\0          Hippel-COSO Module sound file
403 -26     string          V.3             Brian Postma's Soundmon Module sound file v3
404 -26     string          BPSM            Brian Postma's Soundmon Module sound file v3
405 -26     string          V.2             Brian Postma's Soundmon Module sound file v2
406 +# Too simple (short, pure ASCII, deep), MPi
407 +#26    string          V.3             Brian Postma's Soundmon Module sound file v3
408 +#26    string          BPSM            Brian Postma's Soundmon Module sound file v3
409 +#26    string          V.2             Brian Postma's Soundmon Module sound file v2
410  
411  # The following are from: "Stefan A. Haubenthal" <polluks@web.de>
412  0      beshort         0x0f00          AmigaOS bitmap font
413 --- file-4.06.orig/magic/Magdir/animation
414 +++ file-4.06/magic/Magdir/animation
415 @@ -121,7 +121,7 @@
416  #From: Johan Gade <jgade@diku.dk>
417  
418  # MPEG-4 Advanced Audio Coding (AAC) file (perhaps also MPEG-2 ACC?)
419 -16     string          M4A             MPEG-4 Advanced Audio Coding file (ACC)
420 +16     string          M4A             MPEG-4 Advanced Audio Coding file (AAC)
421  
422  
423  # FLI animation format
424 @@ -167,6 +167,8 @@
425  0      string          MOVI            Silicon Graphics movie file
426  4      string          moov            Apple QuickTime movie file (moov)
427  4      string          mdat            Apple QuickTime movie file (mdat)
428 +4      string          wide            Apple QuickTime movie file (moov)
429 +4      string          free            Apple QuickTime movie file (free)
430  
431  # iso 13818 transport stream
432  #
433 --- file-4.06.orig/magic/Magdir/archive
434 +++ file-4.06/magic/Magdir/archive
435 @@ -35,7 +35,7 @@
436  >68    string          >\0             (format %s)
437  >81    string          bz2             \b, uses bzip2 compression
438  >84    string          gz              \b, uses gzip compression
439 ->136   ledate          x               created: %s
440 +#>136  ledate          x               created: %s
441  
442  # other archives
443  0      long            0177555         very old archive
444 @@ -241,9 +241,11 @@
445  
446  # Microsoft cabinets 
447  # by David Necas (Yeti) <yeti@physics.muni.cz>
448 -0      string  MSCF\0\0\0\0    Microsoft cabinet file data,
449 ->25    byte    x               v%d
450 ->24    byte    x               \b.%d
451 +#0     string  MSCF\0\0\0\0    Microsoft cabinet file data,
452 +#>25   byte    x               v%d
453 +#>24   byte    x               \b.%d
454 +# MPi: All CABs have version 1.3, so this is pointless.
455 +# Better magic in debian-additions.
456  
457  # GTKtalog catalogs 
458  # by David Necas (Yeti) <yeti@physics.muni.cz>
459 --- file-4.06.orig/magic/Magdir/audio
460 +++ file-4.06/magic/Magdir/audio
461 @@ -337,3 +337,6 @@
462  0      string          A#S#C#S#S#L#V#3     Synthesizer Generator or Kimwitu data
463  # Kimwitu++ uses a slightly different magic
464  0      string          A#S#C#S#S#L#HUB     Kimwitu++ data
465 +
466 +# From "Simon Hosie
467 +0       string  TFMX-SONG       TFMX module sound data
468 --- file-4.06.orig/magic/Magdir/c-lang
469 +++ file-4.06/magic/Magdir/c-lang
470 @@ -10,7 +10,7 @@
471  # this first will upset you if you're a PL/1 shop...
472  # in which case rm it; ascmagic will catch real C programs
473  #0     string          /*              C or REXX program text
474 -0      string          //              C++ program text
475 +#0     string          //              C++ program text
476  
477  # From: Mikhail Teterin <mi@aldan.algebra.com> 
478  0      string          cscope          cscope reference data
479 --- file-4.06.orig/magic/Magdir/console
480 +++ file-4.06/magic/Magdir/console
481 @@ -119,9 +119,37 @@
482  
483  #------------------------------------------------------------------------------
484  # msx: file(1) magic for MSX game cartridge dumps
485 -0 beshort 0x4142 MSX game cartridge dump 
486 +# Too simple - MPi
487 +#0 beshort 0x4142 MSX game cartridge dump 
488  
489 +#------------------------------------------------------------------------------
490  # Sony Playstation executables (Adam Sjoegren <asjo@diku.dk>) :
491  0      string  PS-X\ EXE       Sony Playstation executable
492  #  Area:
493  >113   string  x               (%s)
494 +
495 +#------------------------------------------------------------------------------
496 +# Microsoft Xbox executables .xbe (Esa Hyytiä <ehyytia@cc.hut.fi>)
497 +0       string          XBEH            XBE, Microsoft Xbox executable
498 +# probabilistic checks whether signed or not
499 +>0x0004 ulelong =0x0
500 +>>&2    ulelong =0x0
501 +>>>&2   ulelong =0x0  \b, not signed
502 +>0x0004 ulelong >0
503 +>>&2    ulelong >0
504 +>>>&2   ulelong >0    \b, signed
505 +# expect base address of 0x10000
506 +>0x0104               ulelong =0x10000
507 +>>(0x0118-0x0FF60)    ulelong&0x80000007  0x80000007 \b, all regions
508 +>>(0x0118-0x0FF60)    ulelong&0x80000007  !0x80000007
509 +>>>(0x0118-0x0FF60)   ulelong >0           (regions:
510 +>>>>(0x0118-0x0FF60)  ulelong &0x00000001  NA
511 +>>>>(0x0118-0x0FF60)  ulelong &0x00000002  Japan
512 +>>>>(0x0118-0x0FF60)  ulelong &0x00000004  Rest_of_World
513 +>>>>(0x0118-0x0FF60)  ulelong &0x80000000  Manufacturer
514 +>>>(0x0118-0x0FF60)   ulelong >0           \b)
515 +
516 +# --------------------------------
517 +# Microsoft Xbox data file formats
518 +0       string          XIP0            XIP, Microsoft Xbox data
519 +0       string          XTF0            XTF, Microsoft Xbox data
520 --- file-4.06.orig/magic/Magdir/database
521 +++ file-4.06/magic/Magdir/database
522 @@ -192,4 +192,12 @@
523  2      string          ICE             ICE authority data
524  
525  # X11 Xauthority file (Wolfram Kleff)
526 +10     string          MIT-MAGIC-COOKIE-1      X11 Xauthority data
527 +11     string          MIT-MAGIC-COOKIE-1      X11 Xauthority data
528 +12     string          MIT-MAGIC-COOKIE-1      X11 Xauthority data
529 +13     string          MIT-MAGIC-COOKIE-1      X11 Xauthority data
530  14     string          MIT-MAGIC-COOKIE-1      X11 Xauthority data
531 +15     string          MIT-MAGIC-COOKIE-1      X11 Xauthority data
532 +16     string          MIT-MAGIC-COOKIE-1      X11 Xauthority data
533 +17     string          MIT-MAGIC-COOKIE-1      X11 Xauthority data
534 +18     string          MIT-MAGIC-COOKIE-1      X11 Xauthority data
535 --- file-4.06.orig/magic/Magdir/flash
536 +++ file-4.06/magic/Magdir/flash
537 @@ -8,6 +8,8 @@
538  #
539  0      string          FWS             Macromedia Flash data,
540  >3     byte            x               version %d
541 +0      string          CWS             Macromedia Flash data (compressed),
542 +>3     byte            x               version %d
543  #
544  # From Dave Wilson
545  0      string AGD4\xbe\xb8\xbb\xcb\x00 Macromedia Freehand 9 Document
546 --- file-4.06.orig/magic/Magdir/human68k
547 +++ file-4.06/magic/Magdir/human68k
548 @@ -2,18 +2,18 @@
549  #------------------------------------------------------------------------------
550  # human68k:  file(1) magic for Human68k (X680x0 DOS) binary formats
551  
552 -0              string  HU              Human68k
553 ->68            string  LZX             LZX compressed
554 ->>72           string  >\0             (version %s)
555 ->(8.L+74)      string  LZX             LZX compressed
556 ->>(8.L+78)     string  >\0             (version %s)
557 ->60            belong  >0              binded
558 ->(8.L+66)      string  #HUPAIR         hupair
559 ->0             string  HU              X executable
560 ->(8.L+74)      string  #LIBCV1         - linked PD LIBC ver 1
561 ->4             belong  >0              - base address 0x%x
562 ->28            belong  >0              not stripped
563 ->32            belong  >0              with debug information
564 +#0             string  HU              Human68k
565 +#>68           string  LZX             LZX compressed
566 +#>>72          string  >\0             (version %s)
567 +#>(8.L+74)     string  LZX             LZX compressed
568 +#>>(8.L+78)    string  >\0             (version %s)
569 +#>60           belong  >0              binded
570 +#>(8.L+66)     string  #HUPAIR         hupair
571 +#>0            string  HU              X executable
572 +#>(8.L+74)     string  #LIBCV1         - linked PD LIBC ver 1
573 +#>4            belong  >0              - base address 0x%x
574 +#>28           belong  >0              not stripped
575 +#>32           belong  >0              with debug information
576  0              beshort 0x601a          Human68k Z executable
577  0              beshort 0x6000          Human68k object file
578  0              belong  0xd1000000      Human68k ar binary archive
579 --- file-4.06.orig/magic/Magdir/images
580 +++ file-4.06/magic/Magdir/images
581 @@ -164,10 +164,11 @@
582  >>18   lelong          x               \b, %d x
583  >>22   lelong          x               %d x
584  >>28   leshort         x               %d
585 -0      string          IC              PC icon data
586 -0      string          PI              PC pointer image data
587 -0      string          CI              PC color icon data
588 -0      string          CP              PC color pointer image data
589 +# Too simple - MPi
590 +#0     string          IC              PC icon data
591 +#0     string          PI              PC pointer image data
592 +#0     string          CI              PC color icon data
593 +#0     string          CP              PC color pointer image data
594  # Conflicts with other entries [BABYL]
595  #0     string          BA              PC bitmap array data
596  
597 --- file-4.06.orig/magic/Magdir/jpeg
598 +++ file-4.06/magic/Magdir/jpeg
599 @@ -19,9 +19,9 @@
600  >11    byte            x               \b %d.
601  >12    byte            x               \b%02d
602  # Next, the resolution or aspect ratio of the image:
603 ->13    byte            0               \b, aspect ratio
604 ->13    byte            1               \b, resolution (DPI)
605 ->13    byte            2               \b, resolution (DPCM)
606 +#>13   byte            0               \b, aspect ratio
607 +#>13   byte            1               \b, resolution (DPI)
608 +#>13   byte            2               \b, resolution (DPCM)
609  #>4    beshort         x               \b, segment length %d
610  # Next, show thumbnail info, if it exists:
611  >18    byte            !0              \b, thumbnail %dx
612 @@ -54,8 +54,8 @@
613  # I've commented-out quantisation table reporting.  I doubt anyone cares yet.
614  #>(4.S+5)      byte            0xDB            \b, quantisation table
615  #>>(4.S+6)     beshort         x               \b length=%d
616 ->14    beshort         x               \b, %d x
617 ->16    beshort         x               \b %d
618 +#>14   beshort         x               \b, %d x
619 +#>16   beshort         x               \b %d
620  
621  # HSI is Handmade Software's proprietary JPEG encoding scheme
622  0      string          hsi1            JPEG image data, HSI proprietary
623 --- file-4.06.orig/magic/Magdir/linux
624 +++ file-4.06/magic/Magdir/linux
625 @@ -42,13 +42,8 @@
626  #
627  # LILO boot/chain loaders, from Daniel Quinlan <quinlan@yggdrasil.com>
628  # this can be overridden by the DOS executable (COM) entry
629 -2      string          LILO            Linux/i386 LILO boot/chain loader
630 -#
631 -# Debian Packages, from Peter Tobias <tobias@server.et-inf.fho-emden.de>
632 -0      string          0.9
633 ->8     byte            0x0a            old Debian Binary Package
634 ->>3    byte            >0              \b, created by dpkg 0.9%c
635 ->>4    byte            >0              pl%c
636 +# Too simple, MPi
637 +#2     string          LILO            Linux/i386 LILO boot/chain loader
638  # PSF fonts, from H. Peter Anvin <hpa@yggdrasil.com>
639  0      leshort         0x0436          Linux/i386 PC Screen Font data,
640  >2     byte            0               256 characters, no directory,
641 @@ -102,10 +97,10 @@
642  >0x1e3         string  Loading         version 1.3.79 or older
643  >0x1e9         string  Loading         from prehistoric times
644  
645 -# System.map files - Nicol=EF=BF=BDs Lichtmaier <nick@debian.org>
646 +# System.map files - Nicolás Lichtmaier <nick@debian.org>
647  8      string  \ A\ _text      Linux kernel symbol map text
648  
649 -# LSM entries - Nicol=EF=BF=BDs Lichtmaier <nick@debian.org>
650 +# LSM entries - Nicolás Lichtmaier <nick@debian.org>
651  0      string  Begin3  Linux Software Map entry text
652  0      string  Begin4  Linux Software Map entry text (new format)
653  
654 --- file-4.06.orig/magic/Magdir/macintosh
655 +++ file-4.06/magic/Magdir/macintosh
656 @@ -88,7 +88,8 @@
657  # that the first one be 0x80, 0x81, 0x82, or 0x83, and that the second
658  # be 0x81.  This works for the files I have, but maybe not for everyone's.
659  
660 -122    beshort&0xFCFF  0x8081          Macintosh MacBinary data
661 +# Unfortunately, this magic is quite weak - MPi
662 +#122   beshort&0xFCFF  0x8081          Macintosh MacBinary data
663  
664  # MacBinary I doesn't have the version number field at all, but MacBinary II
665  # has been in use since 1987 so I hope there aren't many really old files
666 @@ -110,118 +111,118 @@
667  # >73  byte&0x10       0x20            \b, bundle
668  # >73  byte&0x10       0x40            \b, invisible
669  # >73  byte&0x10       0x80            \b, locked
670 -
671 ->65    string          x               \b, type "%4.4s"
672 -
673 ->65    string          8BIM            (PhotoShop)
674 ->65    string          ALB3            (PageMaker 3)
675 ->65    string          ALB4            (PageMaker 4)
676 ->65    string          ALT3            (PageMaker 3)
677 ->65    string          APPL            (application)
678 ->65    string          AWWP            (AppleWorks word processor)
679 ->65    string          CIRC            (simulated circuit)
680 ->65    string          DRWG            (MacDraw)
681 ->65    string          EPSF            (Encapsulated PostScript)
682 ->65    string          FFIL            (font suitcase)
683 ->65    string          FKEY            (function key)
684 ->65    string          FNDR            (Macintosh Finder)
685 ->65    string          GIFf            (GIF image)
686 ->65    string          Gzip            (GNU gzip)
687 ->65    string          INIT            (system extension)
688 ->65    string          LIB\            (library)
689 ->65    string          LWFN            (PostScript font)
690 ->65    string          MSBC            (Microsoft BASIC)
691 ->65    string          PACT            (Compact Pro archive)
692 ->65    string          PDF\            (Portable Document Format)
693 ->65    string          PICT            (picture)
694 ->65    string          PNTG            (MacPaint picture)
695 ->65    string          PREF            (preferences)
696 ->65    string          PROJ            (Think C project)
697 ->65    string          QPRJ            (Think Pascal project)
698 ->65    string          SCFL            (Defender scores)
699 ->65    string          SCRN            (startup screen)
700 ->65    string          SITD            (StuffIt Deluxe)
701 ->65    string          SPn3            (SuperPaint)
702 ->65    string          STAK            (HyperCard stack)
703 ->65    string          Seg\            (StuffIt segment)
704 ->65    string          TARF            (Unix tar archive)
705 ->65    string          TEXT            (ASCII)
706 ->65    string          TIFF            (TIFF image)
707 ->65    string          TOVF            (Eudora table of contents)
708 ->65    string          WDBN            (Microsoft Word word processor)
709 ->65    string          WORD            (MacWrite word processor)
710 ->65    string          XLS\            (Microsoft Excel)
711 ->65    string          ZIVM            (compress (.Z))
712 ->65    string          ZSYS            (Pre-System 7 system file)
713 ->65    string          acf3            (Aldus FreeHand)
714 ->65    string          cdev            (control panel)
715 ->65    string          dfil            (Desk Acessory suitcase)
716 ->65    string          libr            (library)
717 ->65    string          nX^d            (WriteNow word processor)
718 ->65    string          nX^w            (WriteNow dictionary)
719 ->65    string          rsrc            (resource)
720 ->65    string          scbk            (Scrapbook)
721 ->65    string          shlb            (shared library)
722 ->65    string          ttro            (SimpleText read-only)
723 ->65    string          zsys            (system file)
724 -
725 ->69    string          x               \b, creator "%4.4s"
726 -
727 -# Somewhere, Apple has a repository of registered Creator IDs.  These are
728 -# just the ones that I happened to have files from and was able to identify.
729 -
730 ->69    string          8BIM            (Adobe Photoshop)
731 ->69    string          ALD3            (PageMaker 3)
732 ->69    string          ALD4            (PageMaker 4)
733 ->69    string          ALFA            (Alpha editor)
734 ->69    string          APLS            (Apple Scanner)
735 ->69    string          APSC            (Apple Scanner)
736 ->69    string          BRKL            (Brickles)
737 ->69    string          BTFT            (BitFont)
738 ->69    string          CCL2            (Common Lisp 2)
739 ->69    string          CCL\            (Common Lisp)
740 ->69    string          CDmo            (The Talking Moose)
741 ->69    string          CPCT            (Compact Pro)
742 ->69    string          CSOm            (Eudora)
743 ->69    string          DMOV            (Font/DA Mover)
744 ->69    string          DSIM            (DigSim)
745 ->69    string          EDIT            (Macintosh Edit)
746 ->69    string          ERIK            (Macintosh Finder)
747 ->69    string          EXTR            (self-extracting archive)
748 ->69    string          Gzip            (GNU gzip)
749 ->69    string          KAHL            (Think C)
750 ->69    string          LWFU            (LaserWriter Utility)
751 ->69    string          LZIV            (compress)
752 ->69    string          MACA            (MacWrite)
753 ->69    string          MACS            (Macintosh operating system)
754 ->69    string          MAcK            (MacKnowledge terminal emulator)
755 ->69    string          MLND            (Defender)
756 ->69    string          MPNT            (MacPaint)
757 ->69    string          MSBB            (Microsoft BASIC (binary))
758 ->69    string          MSWD            (Microsoft Word)
759 ->69    string          NCSA            (NCSA Telnet)
760 ->69    string          PJMM            (Think Pascal)
761 ->69    string          PSAL            (Hunt the Wumpus)
762 ->69    string          PSI2            (Apple File Exchange)
763 ->69    string          R*ch            (BBEdit)
764 ->69    string          RMKR            (Resource Maker)
765 ->69    string          RSED            (Resource Editor)
766 ->69    string          Rich            (BBEdit)
767 ->69    string          SIT!            (StuffIt)
768 ->69    string          SPNT            (SuperPaint)
769 ->69    string          Unix            (NeXT Mac filesystem)
770 ->69    string          VIM!            (Vim editor)
771 ->69    string          WILD            (HyperCard)
772 ->69    string          XCEL            (Microsoft Excel)
773 ->69    string          aCa2            (Fontographer)
774 ->69    string          aca3            (Aldus FreeHand)
775 ->69    string          dosa            (Macintosh MS-DOS file system)
776 ->69    string          movr            (Font/DA Mover)
777 ->69    string          nX^n            (WriteNow)
778 ->69    string          pdos            (Apple ProDOS file system)
779 ->69    string          scbk            (Scrapbook)
780 ->69    string          ttxt            (SimpleText)
781 ->69    string          ufox            (Foreign File Access)
782 +# 
783 +# >65  string          x               \b, type "%4.4s"
784 +# 
785 +# >65  string          8BIM            (PhotoShop)
786 +# >65  string          ALB3            (PageMaker 3)
787 +# >65  string          ALB4            (PageMaker 4)
788 +# >65  string          ALT3            (PageMaker 3)
789 +# >65  string          APPL            (application)
790 +# >65  string          AWWP            (AppleWorks word processor)
791 +# >65  string          CIRC            (simulated circuit)
792 +# >65  string          DRWG            (MacDraw)
793 +# >65  string          EPSF            (Encapsulated PostScript)
794 +# >65  string          FFIL            (font suitcase)
795 +# >65  string          FKEY            (function key)
796 +# >65  string          FNDR            (Macintosh Finder)
797 +# >65  string          GIFf            (GIF image)
798 +# >65  string          Gzip            (GNU gzip)
799 +# >65  string          INIT            (system extension)
800 +# >65  string          LIB\            (library)
801 +# >65  string          LWFN            (PostScript font)
802 +# >65  string          MSBC            (Microsoft BASIC)
803 +# >65  string          PACT            (Compact Pro archive)
804 +# >65  string          PDF\            (Portable Document Format)
805 +# >65  string          PICT            (picture)
806 +# >65  string          PNTG            (MacPaint picture)
807 +# >65  string          PREF            (preferences)
808 +# >65  string          PROJ            (Think C project)
809 +# >65  string          QPRJ            (Think Pascal project)
810 +# >65  string          SCFL            (Defender scores)
811 +# >65  string          SCRN            (startup screen)
812 +# >65  string          SITD            (StuffIt Deluxe)
813 +# >65  string          SPn3            (SuperPaint)
814 +# >65  string          STAK            (HyperCard stack)
815 +# >65  string          Seg\            (StuffIt segment)
816 +# >65  string          TARF            (Unix tar archive)
817 +# >65  string          TEXT            (ASCII)
818 +# >65  string          TIFF            (TIFF image)
819 +# >65  string          TOVF            (Eudora table of contents)
820 +# >65  string          WDBN            (Microsoft Word word processor)
821 +# >65  string          WORD            (MacWrite word processor)
822 +# >65  string          XLS\            (Microsoft Excel)
823 +# >65  string          ZIVM            (compress (.Z))
824 +# >65  string          ZSYS            (Pre-System 7 system file)
825 +# >65  string          acf3            (Aldus FreeHand)
826 +# >65  string          cdev            (control panel)
827 +# >65  string          dfil            (Desk Acessory suitcase)
828 +# >65  string          libr            (library)
829 +# >65  string          nX^d            (WriteNow word processor)
830 +# >65  string          nX^w            (WriteNow dictionary)
831 +# >65  string          rsrc            (resource)
832 +# >65  string          scbk            (Scrapbook)
833 +# >65  string          shlb            (shared library)
834 +# >65  string          ttro            (SimpleText read-only)
835 +# >65  string          zsys            (system file)
836 +# 
837 +# >69  string          x               \b, creator "%4.4s"
838 +# 
839 +# # Somewhere, Apple has a repository of registered Creator IDs.  These are
840 +# # just the ones that I happened to have files from and was able to identify.
841 +# 
842 +# >69  string          8BIM            (Adobe Photoshop)
843 +# >69  string          ALD3            (PageMaker 3)
844 +# >69  string          ALD4            (PageMaker 4)
845 +# >69  string          ALFA            (Alpha editor)
846 +# >69  string          APLS            (Apple Scanner)
847 +# >69  string          APSC            (Apple Scanner)
848 +# >69  string          BRKL            (Brickles)
849 +# >69  string          BTFT            (BitFont)
850 +# >69  string          CCL2            (Common Lisp 2)
851 +# >69  string          CCL\            (Common Lisp)
852 +# >69  string          CDmo            (The Talking Moose)
853 +# >69  string          CPCT            (Compact Pro)
854 +# >69  string          CSOm            (Eudora)
855 +# >69  string          DMOV            (Font/DA Mover)
856 +# >69  string          DSIM            (DigSim)
857 +# >69  string          EDIT            (Macintosh Edit)
858 +# >69  string          ERIK            (Macintosh Finder)
859 +# >69  string          EXTR            (self-extracting archive)
860 +# >69  string          Gzip            (GNU gzip)
861 +# >69  string          KAHL            (Think C)
862 +# >69  string          LWFU            (LaserWriter Utility)
863 +# >69  string          LZIV            (compress)
864 +# >69  string          MACA            (MacWrite)
865 +# >69  string          MACS            (Macintosh operating system)
866 +# >69  string          MAcK            (MacKnowledge terminal emulator)
867 +# >69  string          MLND            (Defender)
868 +# >69  string          MPNT            (MacPaint)
869 +# >69  string          MSBB            (Microsoft BASIC (binary))
870 +# >69  string          MSWD            (Microsoft Word)
871 +# >69  string          NCSA            (NCSA Telnet)
872 +# >69  string          PJMM            (Think Pascal)
873 +# >69  string          PSAL            (Hunt the Wumpus)
874 +# >69  string          PSI2            (Apple File Exchange)
875 +# >69  string          R*ch            (BBEdit)
876 +# >69  string          RMKR            (Resource Maker)
877 +# >69  string          RSED            (Resource Editor)
878 +# >69  string          Rich            (BBEdit)
879 +# >69  string          SIT!            (StuffIt)
880 +# >69  string          SPNT            (SuperPaint)
881 +# >69  string          Unix            (NeXT Mac filesystem)
882 +# >69  string          VIM!            (Vim editor)
883 +# >69  string          WILD            (HyperCard)
884 +# >69  string          XCEL            (Microsoft Excel)
885 +# >69  string          aCa2            (Fontographer)
886 +# >69  string          aca3            (Aldus FreeHand)
887 +# >69  string          dosa            (Macintosh MS-DOS file system)
888 +# >69  string          movr            (Font/DA Mover)
889 +# >69  string          nX^n            (WriteNow)
890 +# >69  string          pdos            (Apple ProDOS file system)
891 +# >69  string          scbk            (Scrapbook)
892 +# >69  string          ttxt            (SimpleText)
893 +# >69  string          ufox            (Foreign File Access)
894  
895  # Just in case...
896  
897 --- file-4.06.orig/magic/Magdir/msdos
898 +++ file-4.06/magic/Magdir/msdos
899 @@ -181,9 +181,6 @@
900  # Help files
901  0      string  ?_\3\0          MS Windows Help Data
902  
903 -# Microsoft CAB distribution format  Dale Worley <root@dworley.ny.mediaone.net>
904 -0      string          MSCF\000\000\000\000    Microsoft CAB file
905 -
906  #  DeIsL1.isu what this is I don't know
907  0      string  \161\250\000\000\001\002        DeIsL1.isu whatever that is
908  
909 @@ -239,11 +236,6 @@
910  >>8    byte    >0                      \b, %d-colors
911  
912  
913 -# True Type fonts currently misidentified as raw G3 data
914 -
915 -0      string  \000\001\000\000\000 MS-Windows true type font .ttf
916 -
917 -
918  # .chr files
919  0      string  PK\010\010BGI   Borland font 
920  >4     string  >\0     %s
921 @@ -279,7 +271,8 @@
922  0      string          DCU1            Borland Delphi .DCU file
923  0      string          !<spell>        MKS Spell hash list (old format)
924  0      string          !<spell2>       MKS Spell hash list
925 -0      string          AH              Halo(TM) bitmapped font file
926 +# Too simple - MPi
927 +#0     string          AH              Halo(TM) bitmapped font file
928  0      lelong          0x08086b70      TurboC BGI file
929  0      lelong          0x08084b50      TurboC Font file
930  
931 --- file-4.06.orig/magic/Magdir/os2
932 +++ file-4.06/magic/Magdir/os2
933 @@ -11,16 +11,16 @@
934  # OS/2 URL objects
935  # Provided 1998/08/22 by
936  # David Mediavilla <davidme.news@REMOVEIFNOTSPAMusa.net>
937 -0      string  http:                   OS/2 URL object text
938 ->5     string  >\                      (WWW) <http:%s>
939 -0      string  mailto:                 OS/2 URL object text
940 ->7     string  >\                      (email) <%s>
941 -0      string  news:                   OS/2 URL object text
942 ->5     string  >\                      (Usenet) <%s>
943 -0      string  ftp:                    OS/2 URL object text
944 ->4     string  >\                      (FTP) <ftp:%s>
945 -0      string  file:                   OS/2 URL object text
946 ->5     string  >\                      (Local file) <%s>
947 +#0     string  http:                   OS/2 URL object text
948 +#>5    string  >\                      (WWW) <http:%s>
949 +#0     string  mailto:                 OS/2 URL object text
950 +#>7    string  >\                      (email) <%s>
951 +#0     string  news:                   OS/2 URL object text
952 +#>5    string  >\                      (Usenet) <%s>
953 +#0     string  ftp:                    OS/2 URL object text
954 +#>4    string  >\                      (FTP) <ftp:%s>
955 +#0     string  file:                   OS/2 URL object text
956 +#>5    string  >\                      (Local file) <%s>
957  
958  # >>>>> OS/2 INF/HLP <<<<<  (source: Daniel Dissett ddissett@netcom.com)
959  # Carl Hauser (chauser.parc@xerox.com) and 
960 --- file-4.06.orig/magic/Magdir/python
961 +++ file-4.06/magic/Magdir/python
962 @@ -11,4 +11,4 @@
963  0      belong          0x87c60d0a      python 2.0 byte-compiled
964  0      belong          0x2aeb0d0a      python 2.1 byte-compiled
965  0      belong          0x2ded0d0a      python 2.2 byte-compiled
966 -#0     belong          0x31f20d0a      python 2.3 byte-compiled
967 +0      belong          0x3bf20d0a      python 2.3 byte-compiled
968 --- file-4.06.orig/magic/Magdir/sgml
969 +++ file-4.06/magic/Magdir/sgml
970 @@ -11,8 +11,7 @@
971  
972  # Extensible markup language (XML), a subset of SGML
973  # from Marc Prud'hommeaux (marc@apocalypse.org)
974 -0      string/cb       \<?xml                  XML document text
975 -0      string          \<?xml\ version "       XML
976 +0      string          \<?xml\ version="       XML
977  >15    string          >\0                     %.3s document text
978  >>23   string          \<xsl:stylesheet        (XSL stylesheet)
979  >>24   string          \<xsl:stylesheet        (XSL stylesheet)
980 --- file-4.06.orig/magic/Magdir/ti-8x
981 +++ file-4.06/magic/Magdir/ti-8x
982 @@ -1,5 +1,5 @@
983  # ------------------------------------------------------------------------
984 -# ti-8x: file(1) magic for the TI-8x and TI-92 Graphing Calculators.
985 +# ti-8x: file(1) magic for the TI-8x and TI-9x Graphing Calculators.
986  #
987  # From: Ryan McGuire (rmcguire@freenet.columbus.oh.us).
988  #
989 --- file-4.06.orig/magic/Magdir/vorbis
990 +++ file-4.06/magic/Magdir/vorbis
991 @@ -17,11 +17,11 @@
992  ##>4           byte            0               revision 0
993  >4             byte            0
994  ##>>14         lelong          x               (Serial %lX)
995 -# --- First vorbis packet - general header ---
996 ->>28           string          \x01vorbis      \b, Vorbis audio,
997  # non-Vorbis content: FLAC (Free Loss-lessy Audio Codec,
998  # http://flac.sourceforge.net)
999  >>28           string          fLaC            \b, FLAC audio
1000 +# --- First vorbis packet - general header ---
1001 +>>28           string          \x01vorbis      \b, Vorbis audio,
1002  >>>35          lelong          !0              UNKNOWN VERSION %lu,
1003  ##>>>35                lelong          0               version 0,
1004  >>>35          lelong          0
1005 --- file-4.06.orig/magic/Magdir/debian-additions
1006 +++ file-4.06/magic/Magdir/debian-additions
1007 @@ -0,0 +1,112 @@
1008 +# GnuPG
1009 +# The format is very similar to pgp
1010 +0      string          \001gpg                 GPG key trust database
1011 +>4     byte            x                       version %d
1012 +0       beshort         0x9901                  GPG key public ring
1013 +# This magic is not particularly good, as the keyrings don't have true
1014 +# magic. Nevertheless, it covers many keyrings.
1015 +
1016 +# JFFS2 file system
1017 +0       leshort         0x1984                  Linux old jffs2 filesystem data little endian
1018 +0       lelong          0xe0011985              Linux jffs2 filesystem data little endian
1019 +
1020 +# Gnumeric spreadsheet
1021 +# This entry is only semi-helpful, as Gnumeric compresses its files, so
1022 +# they will ordinarily reported as "compressed", but at least -z helps
1023 +39      string          =<gmr:Workbook           Gnumeric spreadsheet
1024 +
1025 +# Netscape Communicator address book
1026 +0   string   \000\017\102\111 Netscape Communicator address book
1027 +
1028 +
1029 +#------------------------------------------------------------------------------
1030 +# dact:  file(1) magic for DACT compressed files
1031 +#
1032 +0      long            0x444354C3      DACT compressed data
1033 +>4     byte            >-1             (version %i.
1034 +>5     byte            >-1             $BS%i.
1035 +>6     byte            >-1             $BS%i)
1036 +>7     long            >0              $BS, original size: %i bytes
1037 +>15    long            >30             $BS, block size: %i bytes
1038 +
1039 +
1040 +#------------------------------------------------------------------------------
1041 +# From Stuart Caie <kyzer@4u.net> (developer of cabextract)
1042 +# Microsoft Cabinet files
1043 +0      string          MSCF\0\0\0\0    Microsoft Cabinet file
1044 +>8     lelong          x               \b, %u bytes
1045 +>28    leshort         1               \b, 1 file
1046 +>28    leshort         >1              \b, %u files
1047 +
1048 +# InstallShield Cabinet files
1049 +0      string          ISc(            InstallShield Cabinet file
1050 +>5     byte&0xf0       =0x60           version 6,
1051 +>5     byte&0xf0       !0x60           version 4/5,
1052 +>(12.l+40)     lelong  x               %u files
1053 +
1054 +# Windows CE package files
1055 +0      string          MSCE\0\0\0\0    Microsoft WinCE install header
1056 +>20    lelong          0               \b, architecture-independent
1057 +>20    lelong          103             \b, Hitachi SH3
1058 +>20    lelong          104             \b, Hitachi SH4
1059 +>20    lelong          0xA11           \b, StrongARM
1060 +>20    lelong          4000            \b, MIPS R4000
1061 +>20    lelong          10003           \b, Hitachi SH3
1062 +>20    lelong          10004           \b, Hitachi SH3E
1063 +>20    lelong          10005           \b, Hitachi SH4
1064 +>20    lelong          70001           \b, ARM 7TDMI
1065 +>52    leshort         1               \b, 1 file
1066 +>52    leshort         >1              \b, %u files
1067 +>56    leshort         1               \b, 1 registry entry
1068 +>56    leshort         >1              \b, %u registry entries
1069 +
1070 +
1071 +#------------------------------------------------------------------------------
1072 +# gcc:  file(1) magic for GCC special files
1073 +#
1074 +0       string          gpch            GCC precompiled header
1075 +
1076 +# The version field is annoying.  It's 3 characters, not zero-terminated.
1077 +>5      byte            x                       (version %c
1078 +>6      byte            x                       \b%c
1079 +>7      byte            x                       \b%c)
1080 +
1081 +# 67 = 'C', 111 = 'o', 43 = '+', 79 = 'O'
1082 +>4      byte            67                      for C
1083 +>4      byte            111                     for Objective C
1084 +>4      byte            43                      for C++
1085 +>4      byte            79                      for Objective C++
1086 +
1087 +
1088 +#------------------------------------------------------------------------------
1089 +# GEOS files (Vidar Madsen, vidar@gimp.org)
1090 +# semi-commonly used in embedded and handheld systems.
1091 +0      belong  0xc745c153      GEOS
1092 +>40    byte    1       executable
1093 +>40    byte    2       VMFile
1094 +>40    byte    3       binary
1095 +>40    byte    4       directory label
1096 +>40    byte    <1      unknown
1097 +>40    byte    >4      unknown
1098 +>4     string  >\0     \b, name "%s"
1099 +#>44   short   x       \b, version %d
1100 +#>46   short   x       \b.%d
1101 +#>48   short   x       \b, rev %d
1102 +#>50   short   x       \b.%d
1103 +#>52   short   x       \b, proto %d
1104 +#>54   short   x       \br%d
1105 +#>168  string  >\0     \b, copyright "%s"
1106 +
1107 +
1108 +#---------------------------------------------------------------------------
1109 +# HVQM4: compressed movie format designed by Hudson for Nintendo GameCube
1110 +# From Mark Sheppard <msheppard@climax.co.uk>, 2002-10-03
1111 +#
1112 +0      string          HVQM4           %s
1113 +>6     string          >\0             v%s
1114 +>0     byte            x               GameCube movie,
1115 +>0x34  ubeshort        x               %d x
1116 +>0x36  ubeshort        x               %d,
1117 +>0x26  ubeshort        x               %dµs,
1118 +>0x42  ubeshort        0               no audio
1119 +>0x42  ubeshort        >0              %dHz audio
1120 --- file-4.06.orig/magic/Makefile.am
1121 +++ file-4.06/magic/Makefile.am
1122 @@ -22,6 +22,7 @@
1123         $(top_builddir)/src/file -C -m magic.mime
1124  
1125  magic_FRAGMENTS = \
1126 +Magdir/debian-additions \
1127  Magdir/acorn \
1128  Magdir/adi \
1129  Magdir/adventure \
1130 --- file-4.06.orig/magic/magic.mime
1131 +++ file-4.06/magic/magic.mime
1132 @@ -195,10 +195,10 @@
1133  # because it tries to uncompress it to figure out what's inside.
1134  
1135  # standard unix compress
1136 -0      string          \037\235        application/x-compress
1137 +#0     string          \037\235        application/x-compress
1138  
1139  # gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
1140 -0       string          \037\213        application/x-gzip
1141 +#0       string          \037\213        application/x-gzip
1142  
1143  0              string                  PK\003\004              application/x-zip
1144  
1145 @@ -313,6 +313,8 @@
1146  0      string          \<!doctype\ html        text/html
1147  0      string          \<!doctype\ HTML        text/html
1148  
1149 +0      string/b        \<?xml                  text/xml
1150 +
1151  #------------------------------------------------------------------------------
1152  # images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
1153  #
1154 @@ -374,7 +376,7 @@
1155  0      beshort         0xffd8          image/jpeg
1156  
1157  # PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
1158 -0      string          BM              image/bmp
1159 +0      string          BM              image/x-ms-bmp
1160  #>14   byte            12              (OS/2 1.x format)
1161  #>14   byte            64              (OS/2 2.x format)
1162  #>14   byte            40              (Windows 3.x format)
1163 @@ -623,3 +625,12 @@
1164  #>>12   leshort    0   application/x-dbf
1165  #
1166  #0     leshort         0x0006          application/x-dbt
1167 +
1168 +0      string          FWS             application/x-shockwave-flash
1169 +0      string          CWS             application/x-shockwave-flash
1170 +
1171 +
1172 +# Gnumeric spreadsheet
1173 +# This entry is only semi-helpful, as Gnumeric compresses its files, so
1174 +# they will ordinarily reported as "compressed", but at least -z helps
1175 +39      string          =<gmr:Workbook           application/x-gnumeric
1176 --- file-4.06.orig/magic/magic.local
1177 +++ file-4.06/magic/magic.local
1178 @@ -0,0 +1,3 @@
1179 +# Magic local data for file(1) command.
1180 +# Insert here your local magic data. Format is described in magic(5).
1181 +
1182 --- file-4.06.orig/debian/changelog
1183 +++ file-4.06/debian/changelog
1184 @@ -0,0 +1,665 @@
1185 +file (4.06-1) unstable; urgency=low
1186 +
1187 +  * New upstream.
1188 +    - Return error for non-existant files (closes: #215801)
1189 +    - Adds BitTorrent (closes: #201301)
1190 +  * Fix minor AAC typo (closes: #215052)
1191 +  * More QuickTime subformats (closes: #198809)
1192 +  * Rearrange Flac detection (closes: #213693)
1193 +  * Improved CAB detection (closes: #207344, #205431)
1194 +  * Added DACT (closes: #195882)
1195 +  * Added GCC precompiled headers (closes: #204304)
1196 +  * Added GEOS (closes: #162852)
1197 +  * Added HVQM4 (Still counting, Mark? Closes: #151138)
1198 +
1199 + -- Michael Piefel <piefel@debian.org>  Fri, 17 Oct 2003 12:40:54 +0200
1200 +
1201 +file (4.04-1) unstable; urgency=low
1202 +
1203 +  * New upstream
1204 +  * add MAXPATHLEN to apprentice.c in order to make it build on the
1205 +    Hurd (closes: #212215)
1206 +  * add TFMX (closes: #151217, as the rest was already there)
1207 +  * recognize PO files (closes: #138423)
1208 +
1209 + -- Michael Piefel <piefel@debian.org>  Tue, 23 Sep 2003 17:06:48 +0200
1210 +
1211 +file (4.03-3) unstable; urgency=low
1212 +
1213 +  * more and better magic:
1214 +    - added Python 2.3 byte-compiled
1215 +    - corrected magic for HFS+ (closes: #207576)
1216 +    - fixed XML magic and added to MIME magic (closes: #186613)
1217 +    - added Xbox magic (closes: #183432)
1218 +    - remove ", English" from MIME type output (closes: #160415)
1219 +    - remove the vain attempts to guess the size of JPEG files as they are
1220 +      either wrong or confusing (sort of closes: #74938, #153833, #198053)
1221 +    - add Gnumeric magic to both normal and MIME magic; note you still have to
1222 +      pass -z to file (closes: #205708, #206756)
1223 +    - remove compresse MIME types (related to #170981)
1224 +    - add ACE archiver (closes: #178807)
1225 +  * add more descriptive message for unreadable files (closes: #203168)
1226 +  * rearranges header inclusions so that configuration is the same in all
1227 +    compiled files (closes: #208785)
1228 +  * fix the long-standing crash-on-compressed bug (closes: #197442, #207458)
1229 +
1230 + -- Michael Piefel <piefel@debian.org>  Fri, 05 Sep 2003 11:59:54 +0200
1231 +
1232 +file (4.03-2) unstable; urgency=low
1233 +
1234 +  * Compressed Flash (closes: #179640), also for MIME (closes: #186946)
1235 +  * Added GPG (closes: #197646) and JFFS2 (closes: #188780);
1236 +    accidentally also closes: #203158 (debian-additions not empty anymore)
1237 +
1238 + -- Michael Piefel <piefel@debian.org>  Tue, 29 Jul 2003 13:28:39 +0200
1239 +
1240 +file (4.03-1) unstable; urgency=low
1241 +
1242 +  * New upstream
1243 +    - fixes Zsh bug (closes: #195583, #196163)
1244 +    - incorporates many Debian changes to magic entries
1245 +    - also closes: #196162 (no more Broken HTML) 
1246 +  * Reformatted ancient changelog entries and made sure changelog
1247 +    is in UTF-8.
1248 +  * File depends on correct library version now (closes: #194697)
1249 +  * Recognizes more Magic Cookies (closes: #201301)
1250 +  * Dynamically updates libtool (closes: #195330)
1251 +
1252 + -- Michael Piefel <piefel@debian.org>  Sun, 27 Jul 2003 23:39:15 +0200
1253 +
1254 +file (4.02-4) unstable; urgency=low
1255 +
1256 +  * The "no closes:" release.
1257 +  * Removed one last artifact of the raw-magic option.
1258 +  * Adapt the very-short-file fix to the new environment.
1259 +
1260 + -- Michael Piefel <piefel@debian.org>  Sat, 17 May 2003 20:01:17 +0200
1261 +
1262 +file (4.02-3) unstable; urgency=low
1263 +
1264 +  * Remove the nomgc symbol from the library (closes: #193355); this kind of
1265 +    reopens #115573, but I am now sure that this is not a bug, document the
1266 +    behaviour instead.
1267 +  * Make HTML magic a little less picky (closes: #193296)
1268 +  * Close files after looking at them (closes: #193580)
1269 +  * Don't report bogus for unreadable files (closes: #193582)
1270 +
1271 + -- Michael Piefel <piefel@debian.org>  Sat, 17 May 2003 18:01:27 +0200
1272 +
1273 +file (4.02-2) unstable; urgency=low
1274 +
1275 +  * Changed Priority of libmagic-dev to optional (closes: #193254)
1276 +  * Add Conflicts of libmagic1 to older file (closes: #193236, #193238)
1277 +  * Use newer libtool (closes: #193152)
1278 +    
1279 + -- Michael Piefel <piefel@debian.org>  Wed, 14 May 2003 13:47:47 +0200
1280 +
1281 +file (4.02-1) unstable; urgency=low
1282 +
1283 +  * New upstream version
1284 +  * Acknowledge NMU, closes: #184204
1285 +  * Description length limit is down to 64 again. The easy way, setting it in
1286 +    file.h, doesn't work anymore, and I've not yet found out why.
1287 +  * Upstream has made a library out of the magic number recognition routines.
1288 +    Consequently, split the package up into three binary packages, adding
1289 +    libmagic1 and libmagic-dev.
1290 +  * debian/rules: all new and shiny; better autotools supprt
1291 +  * add some more magic:
1292 +    - TI emulators skins (closes: #167267)
1293 +    - Objective Caml (closes: #166830)
1294 +    - ReBorn (closes: #156279)
1295 +    - SE Linux policy database (closes: #159283)
1296 +    - Flow Cytometry Standard (closes: #160984)
1297 +  * remove some magic:
1298 +    - Brian Postma's Soundmon Module (closes: #168661)
1299 +    - LILO (closes: #160602)
1300 +  * fixed some magic:
1301 +    - XWD X Window Dump (closes: #164047, #81771)
1302 +  * fix reference to magic man page in README (closes: #159992)
1303 +
1304 + -- Michael Piefel <piefel@debian.org>  Sun, 11 May 2003 20:15:20 +0200
1305 +
1306 +file (3.40-1.1) unstable; urgency=high
1307 +
1308 +  * [readelf.c] Apply patch from upstream version 3.41 to fix buffer overflow
1309 +    - CAN-2003-0102
1310 +    - http://www.idefense.com/advisory/03.04.03.txt
1311 +    - Closes: #184204
1312 +
1313 + -- Matt Zimmerman <mdz@debian.org>  Thu,  3 Apr 2003 13:50:22 -0500
1314 +
1315 +file (3.40-1) unstable; urgency=low
1316 +
1317 +  * New upstream version (closes... no, this time I'm faster)
1318 +  * Switched Maintainer and Uploaders field, thereby effectively taken over
1319 +    the package after not having heard of the previous maintainer for about
1320 +    a year (finally officially closes: #174338, which is already closed)
1321 +  * No more whitespace on first line of debian/rules (closes: #164651)
1322 +  * It seems this already was fixed, but using an addition to the additional
1323 +    StuffIt magic now (closes: #170893)
1324 +  * Added VRML (closes: #166955)
1325 +  * Corrected unknown groff character names in magic(5) manpage (closes: #180056)
1326 +  * Update TI Calculator Magic (closes: #162820)
1327 +  * Make the ELF string extraction a little more robust (closes: #166832)
1328 +  * Recognizes HTML even with whitespace (closes: #119193)
1329 +  * Do not hang on rapidly growing archives with -z (closes: #162896)
1330 +  * Remove CVS date from Ogg output, it is not very useful as version number
1331 +    is printed anyway, and may cause trouble as it is not a real string, thus
1332 +    breaking the output routine for LANG!=C (closes: #178479)
1333 +  * Fix alignment of multifile output and wide characters
1334 +
1335 + -- Michael Piefel <piefel@debian.org>  Sun, 16 Feb 2003 17:31:21 +0100
1336 +
1337 +file (3.39-1) unstable; urgency=low
1338 +
1339 +  * NMU
1340 +  * New upstream version (closes: #148212, #151907)
1341 +    - incorporates most Debian patches 
1342 +    - adds 9660 filesystem magic (closes: #157050; Upstream has
1343 +      a different magic than reporter.)
1344 +    - adds MNG magic (closes 147264, see below)
1345 +    - adds PHP magic (closes: #145929)
1346 +    - detects UTF-8 and UTF-16 with BOM (closes: #102076)
1347 +    - some short string magic commented out (closes: #134266)
1348 +  * New Debian patches
1349 +    - improved Linux kernel magic, make it like lilo (closes: #106898)
1350 +    - changed BMP MIME type to x-ms-bmp (closes: #124234)
1351 +    - added JNG magic (closes: #147264)
1352 +    - added alternate ZIP magic (closes: #56292)
1353 +    - added alternate StuffIt magic (closes: #114027)
1354 +    - added/changed magic for Screamtracker (closes: #60009)
1355 +    - added vCalendar magic (closes: #158338)
1356 +    - added ZX spectrum magic (closes: #157162)
1357 +    - added EST flat binary (closes: #139239), Aculab VoIP firmware
1358 +      (closes: #138967), PPCBoot image (closes: #138958); thank you, Mark
1359 +    - tried some magic for multiple master fonts (closes: #29685)
1360 +    - removed some Mac magic (closes: #113733); this is not the
1361 +      real fix (TM), but works for the particular problem
1362 +    - removed some two-byte ASCII magic - too simple (closes: #144398)
1363 +    - fixed some entries extracting strings (changed \n to \0)
1364 +    - added new command line option -M which ignores compiled databases
1365 +      (closes: #115573)
1366 +    - give warning for one-byte files (magic is at least two bytes long,
1367 +      closes: #95778, #117222)
1368 +  * Move Debian magic additions all together in one spot to facilitate
1369 +    patching and communication with upstream
1370 +
1371 + -- Michael Piefel <piefel@debian.org>  Sun, 01 Sep 2002 13:13:15 +0200
1372 +
1373 +file (3.37-3.1) unstable; urgency=low
1374 +
1375 +  * NMU
1376 +  * Removed regexp.patch and kleff, they didn't serve a purpose
1377 +  * Bumped standards-version to 3.5.
1378 +  * Added Kimwitu magic
1379 +  * Improved MS Office magic (closes: #116693, #54960)
1380 +  * Added XV thumb, ISDN vbox, KiSS (closes: #54391)
1381 +  * Emacs 19 improved upstream (closes: #101336)
1382 +  * Added long HtmlHelp magic (closes: #113876)
1383 +  * Added webshots desktop (closes: #118517)
1384 +  * Added newer Python magic (closes: #119572)
1385 +  * Ogg magic improved upstream (closes: #91858)
1386 +  * XFS cleaned up (closes: #129172)
1387 +  * Targa reports size (closes: #133024)
1388 +  * Documented arbitrary 50 character description limit and increased it
1389 +    to 80 characters (closes: #12415) - the patch for unlimited length
1390 +    doesn't work, at least not at advertised.
1391 +  * Added Atari MSA (closes: #95040)
1392 +  * TI-8x updated (closes: #102824)
1393 +  * Better Swap (closes: #105504)
1394 +  * Increased buffer size to 96K (closes: #105505)
1395 +  * Better CRAMFS (closes: #115575)
1396 +  * Added JFFS (closes: #118900)
1397 +  * Added Hercules DASD image magic (closes: #122326)
1398 +  * Added TDB magic (closes: #122328)
1399 +  * Added Matlab (closes: #125666)
1400 +  * Added Squeak images and (closes: #131627)
1401 +  * Added User Mode COW magic (closes: #134619)
1402 +  * Added even better Ogg magic and even include it (closes: #134663)
1403 +
1404 + -- Michael Piefel <piefel@debian.org>  Mon, 04 Mar 2002 19:47:32 +0100
1405 +
1406 +file (3.37-3) unstable; urgency=low
1407 +
1408 +  * Implemented internal gzip support through the zlib library. It's much
1409 +    faster than executing gzip and it works better. Many small files that
1410 +    weren't properly handled now are. I've tested this with over 400 random
1411 +    gzipped files and it works, but please, report any problem with this.
1412 +
1413 + -- Nicolás Lichtmaier <nick@debian.org>  Sun, 14 Oct 2001 05:56:19 -0300
1414 +
1415 +file (3.37-2) unstable; urgency=low
1416 +
1417 +  * The new sread function was sooo broken... I have now enhanced
1418 +    it with the amazing capability of handling EOF. Now file -z
1419 +    shouldn't hang (closes:Bug#115156).
1420 +
1421 + -- Nicolás Lichtmaier <nick@debian.org>  Thu, 11 Oct 2001 03:10:10 -0300
1422 +
1423 +file (3.37-1) unstable; urgency=low
1424 +
1425 +  * New upstream release:
1426 +    * Recognizes mp3 files with IDv2 tags (closes:Bug#112829, Bug#96688).
1427 +    * Adds magic for RRDtool databases (closes:Bug#114372).
1428 +    * Weak magic for AppleWorks spreadsheet data was removed
1429 +      (closes:Bug#110451,Bug#98447).
1430 +  * Remove warning for not using a compiled magic version for /etc/magic.
1431 +    I won't try to implement something to create a compiled version of
1432 +    /etc/magic as: 1) This fle is empty by default and will have only a few
1433 +    manually added entries, so there wouldn't be any speed gain; 2) It will
1434 +    add complexity and it wouldn't be trivial.
1435 +  * Added a note in magic2mime(1) deprecating its use.
1436 +  * No longer recognizes sunclock's "vector map format" as PostScript
1437 +    (closes:Bug#105930).
1438 +  * Added magic for cramfs and reiserfs from russell@coker.com.au
1439 +    (closes:Bug#105485, Bug#105508).
1440 +  * Added two Palm file formats from
1441 +    John Gruenenfelder <johng@bach.as.arizona.edu> (closes:Bug#104034).
1442 +
1443 + -- Nicolás Lichtmaier <nick@debian.org>  Mon,  8 Oct 2001 19:49:42 -0300
1444 +
1445 +file (3.33-5) unstable; urgency=low
1446 +
1447 +  * Added "Build-Depends: debhelper" (closes:Bug#86829).
1448 +  * New magic for S/390 ELF binaries (closes:Bug#93491).
1449 +  * Added support for large files (closes:Bug#93402).
1450 +  * Fixed magic2mime to cope with the new charset detection
1451 +    (closes:Bug#92931).
1452 +  * Added -s option to short usage message (-h) (closes:Bug#85910).
1453 +  * Added magic for Paint Shop Pro from
1454 +    Telford Tendys <telford@triode.net.au> (closes:Bug#85359).
1455 +  * Removed minor PS version number from font detection magic,
1456 +    suggested by Reinhard Kotucha <reinhard@kammer.uni-hannover.de>
1457 +    (closes:Bug#82667).
1458 +  * Added magic for Flac audio (what's that? =) ) from
1459 +    Matt Zimmerman <mdz@debian.org> (closes:Bug#91857).
1460 +  * Added magic for newer LHA files (does someone still use lha? wow!)
1461 +    from Paul Martin <pm@nowster.zetnet.co.uk> (closes:Bug#83454).
1462 +  * Now shows which compressor a Debian package uses,
1463 +    contributed by Ben Collins <bcollins@debian.org> (closes:Bug#48389).
1464 +  * Removed creation date report from Debian magic, it no longer works.
1465 +    It seems that the gzipped members of the .deb file are no longer
1466 +    created with the proper date.
1467 +  * Added lots of Palm documents contributed by
1468 +    Michael-John Turner <mj@debian.org> (but replaced "document" with
1469 +    "PalmOS document") (closes:Bug#87759).
1470 +  * Added magic for Squish and JAM echomail/netmail Fidonet areas storage
1471 +    formats contributed by peter@softwolves.pp.se (closes:Bug#90172).
1472 +
1473 + -- Nicolás Lichtmaier <nick@debian.org>  Sun,  6 May 2001 02:13:10 -0300
1474 +
1475 +file (3.33-4) unstable; urgency=low
1476 +
1477 +  * Modified Newton PDA package format magic so it doesn't match
1478 +    Java source code files.
1479 +  * When using -z, don't write the NUL terminator to the uncompressing
1480 +    program.
1481 +  * Ignore output from gzip (gzip should have an option to disable the
1482 +    "unexpected end of file" error message) (closes:Bug#83317).
1483 +  * Minor updates to debian/rules.
1484 +  * Reordered description for MIPS object files to please weak parsing
1485 +    in libtool (closes:Bug#83303).
1486 +
1487 + -- Nicolás Lichtmaier <nick@debian.org>  Tue, 30 Jan 2001 22:39:03 -0300
1488 +
1489 +file (3.33-3) unstable; urgency=low
1490 +
1491 +  * Code for detecting if an input stream is seekable assumed that lseek
1492 +    returns 0 on success, which is untrue, and file was copying every ELF
1493 +    file probed to a temporary file. Fixed (closes:Bug#82261).
1494 +    Found by Colin Watson <cjw44@flatline.org.uk>.
1495 +  * Uses -g only if debug is in the DEB_BUILD_OPTIONS variable.
1496 +  * Updated standards-version to 3.2.1.
1497 +
1498 + -- Nicolás Lichtmaier <nick@debian.org>  Mon, 15 Jan 2001 02:26:35 -0300
1499 +
1500 +file (3.33-2) unstable; urgency=low
1501 +
1502 +  * Added ELF magic for IBM AS/390 mainframe (closes:Bug#79575).
1503 +  * Fix from Adam Heat for very small .gz files and -z, I've also
1504 +    added NUL termination of the uncompressed buffer
1505 +    (closes:Bug#16837,Bug#36724,Bug#37838).
1506 +  * If the file is ELF and is not seekable, `file' will now copy
1507 +    it to a temporary file because the ELF code needs to fseek
1508 +    everywhere in the file. The idea was from Adam Heath <adam@doogie.org>.
1509 +    (closes:Bug#28964,Bug#70629).
1510 +
1511 + -- Nicolás Lichtmaier <nick@debian.org>  Sun,  7 Jan 2001 23:38:58 -0300
1512 +
1513 +file (3.33-1) unstable; urgency=low
1514 +
1515 +  * New upstream release (closes:Bug#67970). Fixes:
1516 +    * Recognizes Berkeley DB files (closes:Bug#18821).
1517 +    * Tries to recognize EBCDIC encoded files (closes:Bug#31949).
1518 +    * lif files recognized in LE systems (closes:Bug#78261).
1519 +  * Contributions from Wolfram Kleff (closes:Bug#56667).
1520 +    * Changed pgp armored data to pgp armored *text*.
1521 +    * Added GEM image and metafile from.
1522 +    * Added Vivo video format.
1523 +    * Added STAD packed image.
1524 +    * Added AFX compressed files.
1525 +    * Added GFA-BASIC 3 data.
1526 +    * Added ICE and X11 authority data.
1527 +  * Added magic for DJGPP compiled files from Robert vd Boon
1528 +    (closes:Bug#70600).
1529 +  * Changed file for data here and there (closes:Bug#35851).
1530 +  * Added Sketch document (closes:Bug#67511).
1531 +  * Added SMJPEG (image format used in games) (closes:Bug#62224).
1532 +  * Added magic for Sony PlayStation executables (closes:Bug#31310).
1533 +  * Added other way of detecting perl scripts (closes:Bug#45426).
1534 +  * Fixed detection of MP3 files with the new -i option.
1535 +  * Adapted Debian patch to include long-options alternatives for the
1536 +    new -k and -i options. Updated the manpage.
1537 +
1538 + -- Nicolás Lichtmaier <nick@debian.org>  Sun, 10 Dec 2000 19:02:07 -0300
1539 +
1540 +file (3.28-1) unstable; urgency=low
1541 +
1542 +  * New upstream release. Fixes:
1543 +    * A serious attempt to detect JPEG is done now, but the
1544 +      format seems to be not very magic friendly (closes:Bug#31950).
1545 +    * DB2 magic added (closes:Bug#19097).
1546 +  * Added another case combination for the detection of HTML files
1547 +    (closes:Bug#45326).
1548 +  * Improved newly added xml detection (eg: added XSL stylesheets detection).
1549 +  * Some magic files weren't being included, modified Makefile.am.
1550 +    The files now included are jpeg, grace, mcrypt, palm and spectrum.
1551 +
1552 + -- Nicolás Lichtmaier <nick@debian.org>  Tue, 28 Dec 1999 00:58:01 -0300
1553 +
1554 +file (3.27-7) unstable; urgency=low
1555 +
1556 +  * Added entry for recently announced new LSM file format.
1557 +  * Removed README.Debian and folded it into the copyright file
1558 +    (closes:Bug#53069).
1559 +
1560 + -- Nicolás Lichtmaier <nick@debian.org>  Fri, 24 Dec 1999 20:23:48 -0300
1561 +
1562 +file (3.27-6) unstable; urgency=low
1563 +
1564 +  * Applied patch with improvements to magi2mime
1565 +    from J.H.M. Dassen (Ray) <ray@cistron.nl> (closes:Bug#51399).
1566 +  * Added some Windows magic from Pavel Machek <pavel@bug.ucw.cz>
1567 +    (closes:Bug#31023).
1568 +  * Added magic for PCX, Adobe's PSD, MS Word, and replaced
1569 +    magic for kernel detection with contributions from
1570 +    Wolfram Kleff <kleff@cs.uni-bonn.de> (closes:Bug#46781).
1571 +  * Added magic for Linux kernel System.map files.
1572 +
1573 + -- Nicolás Lichtmaier <nick@debian.org>  Sun, 12 Dec 1999 17:09:08 -0300
1574 +
1575 +file (3.27-5) unstable; urgency=low
1576 +
1577 +  * Put docs and manpages under /usr/share.
1578 +  * Updated `Standards-Version' to 3.1.0.
1579 +  * Added contributed magic for `Smith Corona Personal Word Processors'
1580 +    (closes:Bug#45704).
1581 +  * Added magic for X-Post-it (closes:Bug#43031).
1582 +  * Improved detection of MS-DOS batch files a bit (closes:Bug#50205).
1583 +
1584 + -- Nicolás Lichtmaier <nick@debian.org>  Mon, 15 Nov 1999 01:09:13 -0300
1585 +
1586 +file (3.27-4) unstable; urgency=low
1587 +
1588 +  * It was not reading /etc/magic.
1589 +  * Updated manpage to say that local magic entries are read from
1590 +    and should be written to /etc/magic.
1591 +
1592 + -- Nicolás Lichtmaier <nick@debian.org>  Sat, 10 Jul 1999 19:40:17 -0300
1593 +
1594 +file (3.27-3) unstable; urgency=low
1595 +
1596 +  * Added detection of SIDPlay audio files (closes: Bug#35564, Bug#35483).
1597 +  * Added "#include <errno.h>" to compress.c (closes: Bug#37705).
1598 +  * Fixed tiny typos in README (closes: Bug#38877).
1599 +  * Added magic for Atari ST executables from Wolfram Kleff
1600 +    <kleff@cs.uni-bonn.de>.
1601 +  * Added formats for some communications standards contributed by
1602 +    W. Borgert <debacle@debian.org> (closes: Bug#34542, Bug#34779).
1603 +  * Removed detection of format `Fasttracker "oktalyzer" module sound data'.
1604 +    It was just 2 bytes at offset 0 and generated false positives
1605 +    (closes: Bug#36704).
1606 +  * Added detection of MPEG audio level 2.5 and improved messages for level
1607 +    3 (mp3) contributed by Wolfram Kleff <kleff@cs.uni-bonn.de>
1608 +    (closes: Bug#40733).
1609 +  * Added audio/midi to magic2mime.
1610 +  * Readded magic2mime to package. It was removed by mistake.
1611 +
1612 + -- Nicolás Lichtmaier <nick@debian.org>  Sat, 10 Jul 1999 03:11:45 -0300
1613 +
1614 +file (3.27-2) unstable; urgency=low
1615 +
1616 +  * Removed detection of unstriped binaries. Patch from
1617 +    Sean Perry <shaleh@debian.org>. Fixes bugs #38407, #38417, 38419.
1618 +  * Added detection of NITF files from jrv@vanzandt.mv.com.
1619 +    Fixes bug #38452.
1620 +  * No longer includes Localstuff in /usr/share/misc/magic. Local
1621 +    definitions should go to /etc/magic.
1622 +
1623 + -- Nicolás Lichtmaier <nick@debian.org>  Fri, 28 May 1999 00:39:32 -0300
1624 +
1625 +file (3.27-1) unstable; urgency=low
1626 +
1627 +  * New upstream release. Fixes bugs #36786, #30692,
1628 +    #29353 (added shockwave/flash files).
1629 +  * Removed detection of "OS/2 URL objects": too general.
1630 +  * Truncates \n on output. file's outputs MUST be one line per file.
1631 +    Fixes bugs #34439, #34290, #35222, #32305, #32302, #30875.
1632 +
1633 + -- Nicolás Lichtmaier <nick@debian.org>  Tue, 25 May 1999 21:50:13 -0300
1634 +
1635 +file (3.26-2) frozen unstable; urgency=low
1636 +
1637 +  * Moved x86 boot sector detection after linux kernel detection.
1638 +    Fixes bug #24185.
1639 +  * Added kernel version extraction for newer kernels.
1640 +  * Removed `,' from GIF description's end.
1641 +  * Changed version shown to 3.26-Debian, as this version is different from
1642 +    upstream.
1643 +  * Added manpage for magic2mime.
1644 +  * Added more mime types for magic2mime and some fixes for the script.
1645 +  * Switched to debhelper.
1646 +
1647 + -- Nicolás Lichtmaier <nick@debian.org>  Wed, 20 Jan 1999 02:08:24 -0300
1648 +
1649 +file (3.26-1) frozen unstable; urgency=low
1650 +
1651 +  * New upstream release. Upstream author included many Debian enhancements
1652 +    and added some minor fixes. Fixes bug #30692. Bug #30875 was fixed in
1653 +    previous NMU.
1654 +  * Fixed autoconf use.
1655 +
1656 + -- Nicolás Lichtmaier <nick@debian.org>  Wed, 20 Jan 1999 03:15:45 +0000
1657 +
1658 +file (3.24-4.2) frozen unstable; urgency=HIGH
1659 +
1660 +  * NMU:
1661 +    Fix critical bugs #31031 and #31057.
1662 +
1663 + -- Vincent Renardias <vincent@waw.com>  Wed,  6 Jan 1999 01:51:15 +0100
1664 +
1665 +file (3.24-4.1) frozen unstable; urgency=low
1666 +
1667 +  * Non-maintainer release.
1668 +  * Add patch so "\n"-style escapes work (closes:Bug#22854).
1669 +
1670 + -- Joel Klecker <espy@debian.org>  Sun, 13 Dec 1998 16:44:18 -0800
1671 +
1672 +file (3.24-4) frozen unstable; urgency=low
1673 +
1674 +  * Added `-f' to an rm that might obstaculize automatic builds,
1675 +    fixes bug #19970.
1676 +  * Removed very old Debian package detection that caused files starting
1677 +    with 0.9 to show no description at all, fixes bugs #19657 and #19677.
1678 +
1679 + -- Nicolás Lichtmaier <nick@feedback.net.ar>  Sun, 22 Mar 1998 23:18:34 -0300
1680 +
1681 +file (3.24-3) unstable; urgency=low
1682 +
1683 +  * Small fix in online help.
1684 +  * Changed `Standards-version' to 2.4.0.0 (no changes required).
1685 +  * Moved /usr/share/magic to /usr/share/misc/magic, fixes bug #18639.
1686 +
1687 + -- Nicolás Lichtmaier <nick@feedback.net.ar>  Sun,  8 Mar 1998 14:28:45 -0300
1688 +
1689 +file (3.24-2) unstable; urgency=low
1690 +
1691 +  * Fixed upstream completely broken configure.in (wasn't showing special
1692 +    files major & minor numbers).
1693 +  * Included upsstream magic2mime in the binary package.
1694 +  * Added more HTML tokns to names.h.
1695 +  * Added lzop compressd files definition, contributed
1696 +    by Paolo Molaro <lupus@lettere.unipd.it>.
1697 +  * Moved magic data to /usr/share/magic (not a conffile). /etc/magic will
1698 +    be used for local magic definitions.
1699 +
1700 + -- Nicolás Lichtmaier <nick@feedback.net.ar>  Tue, 24 Feb 1998 21:21:59 -0300
1701 +
1702 +file (3.24-1) unstable; urgency=low
1703 +
1704 +  * names.h: Added HTML.
1705 +  * New upstream release.
1706 +
1707 + -- Nicolás Lichtmaier <nick@feedback.net.ar>  Sat, 21 Feb 1998 00:47:11 -0300
1708 +
1709 +file (3.23-1) unstable; urgency=low
1710 +
1711 +  * Added long version for the new option `-b' (`--brief'). Added long
1712 +    option to manpage. Added the option to the usge message (`--help'). 
1713 +  * Added GNU message catalog magic, contributed
1714 +    by Santiago Vila Doncel <sanvila@unex.es>, fixes bug #14743.
1715 +  * Removed duplcated entry for romfs, fixes bug #13977.
1716 +  * New upstream release, fixes bug #17830.
1717 +
1718 + -- Nicolás Lichtmaier <nick@feedback.net.ar>  Thu, 19 Feb 1998 00:12:32 -0300
1719 +
1720 +file (3.20.1-8) unstable; urgency=low
1721 +
1722 +  * Added magic for Octave contributed
1723 +    by Dirk Eddelbuettel <edd@rosebud.sps.queensu.ca>
1724 +  * names.h: Added detectionn of Java source code.
1725 +  * softmagic.c: When converting endianness only swap bytes if needed.
1726 +  * Use %m instead of strerr.
1727 +  * Added magic for WordPerfect files, contributed
1728 +    by Scott K. Ellis <ellis@charon.valueweb.net>.
1729 +
1730 + -- Nicolás Lichtmaier <nick@feedback.net.ar>  Fri, 10 Oct 1997 17:22:27 -0300
1731 +
1732 +file (3.20.1-7) unstable; urgency=low
1733 +
1734 +  * Changed maintainer address.
1735 +  * Added filesystems and Linux86 magic, contributed
1736 +    by Juan Cespedes <cespedes@debian.org>, fixes #13279.
1737 +  * Keep files' date.
1738 +  * Added GIMP file formats, contributed
1739 +    by Kenneth MacDonald <kenny@ed.ac.uk>.
1740 +
1741 + -- Nicolás Lichtmaier <nick@feedback.net.ar>  Wed,  9 Jul 1997 00:22:38 -0300
1742 +
1743 +file (3.20.1-6) unstable; urgency=low
1744 +
1745 +  * Minor changes to debian/rules.
1746 +  * Modified manpage.
1747 +  * Added `--help' option.
1748 +  * Added magic data for vgetty voice formats (thanks to
1749 +    David Engel <david@sw.ods.com>).
1750 +  * Arguments to a printf casted to long long, fixes #10779.
1751 +
1752 + -- Nicolás Lichtmaier <nick@feedback.com.ar>  Mon, 23 Jun 1997 20:21:58 -0300
1753 +
1754 +file (3.20.1-5) unstable; urgency=low
1755 +
1756 +  * Added Linux kernel boot image version detection for new kernels.
1757 +  * Removed `-Wall' warnings.
1758 +  * Added "DEC SRC Virtual Paper: Lectern files" type,
1759 +    contributed by Karl M. Hegbloom <karlheg@inetarena.com>.
1760 +  * Removed useless RCS ids.
1761 +  * Corrected compilation flags.
1762 +  * Don't try to keep file modification time, it changed file status change
1763 +    time. And it's more natural a change in access time than in file status
1764 +    change time. Fixes bug #7920.
1765 +  * Minor fix to manpage.
1766 +
1767 + -- Nicolás Lichtmaier <nick@feedback.com.ar>  Wed, 18 Jun 1997 21:55:49 -0300
1768 +
1769 +file (3.20.1-4) unstable; urgency=low
1770 +
1771 +  * Built with libc6.
1772 +
1773 + -- Nicolás Lichtmaier <nick@feedback.com.ar>  Wed, 18 Jun 1997 00:09:58 -0300
1774 +
1775 +file (3.20.1-3) unstable; urgency=low
1776 +
1777 +  * Removed information about who created the /etc/magic file.
1778 +  * Removed creation date from /etc/magic. This changed the md5sum of this
1779 +    conffile every release.
1780 +  * Man page updated.
1781 +  * Added long options support.
1782 +
1783 + -- Nicolás Lichtmaier <nick@feedback.com.ar>  Tue, 11 Mar 1997 15:19:43 -0300
1784 +
1785 +file (3.20.1-2) unstable; urgency=low
1786 +
1787 +  * Improved MS applications' docuemts detection (#4473).
1788 +  * Added Steve McIntyre's contributed formats (#6735).
1789 +  * New upstream release has fixed bugs #5777 #5838 and #6656 . All
1790 +    reporting that file didn't detect Java's .class.
1791 +  * My name is Nicolás. Fixes #7238 (!).
1792 +
1793 + -- Nicolás Lichtmaier <nick@feedback.com.ar>  Wed, 12 Feb 1997 02:53:42 -0300
1794 +
1795 +file (3.20.1-1) unstable; urgency=low
1796 +
1797 +  * Added LSM files detection.
1798 +  * Clarified header of /etc/magic.
1799 +  * Added detection of creation time for .deb's.
1800 +  * Added detection of 2.1.x kernels.
1801 +  * Upstream fix to handle \n in arguments to string format broke
1802 +    description that expected \n to end the string. Changed file
1803 +    to discard \n's and following text at print time.
1804 +  * Upstream changelog included.
1805 +  * New upstream release
1806 +
1807 + -- Nicolás Lichtmaier <nick@feedback.com.ar>  Sun, 9 Feb 1997 23:41:39 -0300
1808 +
1809 +file (3.19-7) unstable; urgency=low
1810 +
1811 +  * Corrected section in control file.
1812 +  * New maintainer.
1813 +
1814 + -- Nicolás Lichtmaier <nick@feedback.com.ar>  Sun, 9 Feb 1997 21:49:19 -0300
1815 +
1816 +file (3.19-6) unstable; urgency=low
1817 +
1818 +  * Added detection of pcap data files (like used by tcpdump) Peter Tobias
1819 +    <tobias@et-inf.fho-emden.de>
1820 +  * Removed signal detection from core files. Doesn't work for ELF binaries
1821 +    Peter Tobias <tobias@et-inf.fho-emden.de>.
1822 +  * Changed to new source format.
1823 +
1824 + -- Nicolás Lichtmaier <nick@feedback.com.ar>  Mon, 3 Feb 1997 20:11:00 -0300
1825 +
1826 +file (3.19-5)
1827 +
1828 +  * Change of maintainer and updated for multi-architecture build (fixes Bug #3332)
1829 +  * Un-right-justified the description field
1830 +  * Move entry for debian packages to the correct spot and update it for debian 2.0 packages (fixes Bug #3411)
1831 +  * Add entry for TrueType fonts to Magdir/fonts
1832 +
1833 + -- Darren Stalder  <torin@daft.com>, Mon Jul  8 23:07:21 1996
1834 +
1835 +file (3.19-4)
1836 +  * added entry for Adobe Postscript PPD files in Magdir/ppd.
1837 +
1838 +file (3.19-3)
1839 +  * added entry for linux kernal images to source file Magdir/linux
1840 +
1841 +file (3.19-2)
1842 +  * add MAGIC=/etc/magic to make(1) invocation
1843 +  * change maintainer email address
1844 +
1845 +file (3.19-1)
1846 +  * added debian.* files
1847 +  * modified Magdir/archive to add debian-split entry to ar archives
1848 +  * modified magdir/elf to add more entry for core file
1849 +
This page took 0.163155 seconds and 4 git commands to generate.