--- file-4.18/doc/file.man.orig 2006-05-03 21:20:25.000000000 +0200 +++ file-4.18/doc/file.man 2006-11-13 16:15:03.159505000 +0100 @@ -1,4 +1,4 @@ -.TH FILE __CSECTION__ "Copyright but distributable" +.TH FILE __CSECTION__ "May 2006" "Copyright but distributable" .\" $Id$ .SH NAME file @@ -56,10 +56,9 @@ meaning anything else (data is usually `binary' or non-printable). Exceptions are well-known file formats (core files, tar archives) that are known to contain binary data. -When modifying the file -.I __MAGIC__ -or the program itself, -.B "preserve these keywords" . +When adding local definitions to +.IR /etc/magic , +.BR "preserve these keywords" . People depend on knowing that all the readable files in a directory have the word ``text'' printed. Don't do as Berkeley did and change ``shell commands text'' @@ -98,7 +97,9 @@ The concept of `magic number' has been applied by extension to data files. Any file with some invariant identifier at a small fixed offset into the file can usually be described in this way. -The information identifying these files is read from the compiled +The information identifying these files is read from +.I /etc/magic +and the compiled magic file .I __MAGIC__.mgc , or @@ -369,12 +370,6 @@ The order of entries in the magic file is significant. Depending on what system you are using, the order that they are put together may be incorrect. -If your old -.B file -command uses a magic file, -keep the old magic file around for comparison purposes -(rename it to -.IR __MAGIC__.orig ). .SH EXAMPLES .nf $ file file.c file /dev/{wd0a,hda} @@ -528,3 +523,7 @@ .B ftp.astron.com in the directory .I /pub/file/file-X.YZ.tar.gz +.PP +This version contains some extensions from +.B Debian +(mainly new magic entries). --- file-4.07.orig/src/Makefile.am +++ file-4.07/src/Makefile.am @@ -4,7 +4,7 @@ bin_PROGRAMS = file -AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"' +AM_CPPFLAGS = -DMAGIC='"/etc/magic:$(MAGIC)"' libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \ compress.c is_tar.c readelf.c print.c fsmagic.c \ --- file-4.07.orig/magic/Header +++ file-4.07/magic/Header @@ -1,5 +1,5 @@ -# Magic # Magic data for file(1) command. -# Machine-generated from src/cmd/file/magdir/*; edit there only! -# Format is described in magic(files), where: -# files is 5 on V7 and BSD, 4 on SV, and ?? in the SVID. +# Format is described in magic(5). +# Don't edit this file, edit /etc/magic or send your suggested inclusions to +# this file as a wishlist bug against file (using the reportbug utility). + --- file-4.17/magic/magic.mime.orig 2006-03-02 22:50:32.000000000 +0100 +++ file-4.17/magic/magic.mime 2006-03-19 11:46:24.803922750 +0100 @@ -195,7 +195,7 @@ 0 beshort 0x4De1 audio/MP4A-LATM # MPEG Layer 3 sound files -0 beshort &0xffe0 audio/mpeg +0 beshort&0xfffe =0xfffa audio/mpeg #MP3 with ID3 tag 0 string ID3 audio/mpeg # Ogg/Vorbis @@ -295,10 +295,10 @@ # because it tries to uncompress it to figure out what's inside. # standard unix compress -0 string \037\235 application/x-compress +#0 string \037\235 application/x-compress # gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver) -0 string \037\213 application/x-gzip +#0 string \037\213 application/x-gzip 0 string PK\003\004 application/x-zip @@ -399,19 +399,14 @@ # # from Daniel Quinlan # -0 string \14 byte 12 (OS/2 1.x format) #>14 byte 64 (OS/2 2.x format) #>14 byte 40 (Windows 3.x format) @@ -789,6 +784,7 @@ # 0 string FWS >3 byte x application/x-shockwave-flash +0 string CWS application/x-shockwave-flash # The following paramaters are created for Namazu. # @@ -924,3 +920,8 @@ # From: Denis Knauf, via gentoo. 0 string fLaC audio/x-flac 0 string CWS application/x-shockwave-flash + +# Gnumeric spreadsheet +# This entry is only semi-helpful, as Gnumeric compresses its files, so +# they will ordinarily reported as "compressed", but at least -z helps +39 string =