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