commit 9bf8128e17028fef99e374e7d490efdbbf2713d2b17a1f1f9dcac552093ac720 Author: OBS User unknown Date: Mon Dec 18 23:15:53 2006 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/file-4.03-tex.dif b/file-4.03-tex.dif new file mode 100644 index 0000000..3692ac8 --- /dev/null +++ b/file-4.03-tex.dif @@ -0,0 +1,15 @@ +--- magic/Localstuff ++++ magic/Localstuff Tue Jul 1 16:58:32 2003 +@@ -5,3 +5,12 @@ + # $Id: Localstuff,v 1.4 2003/03/23 04:17:27 christos Exp $ + # Add any locally observed files here. Remember: + # text if readable, executable if runnable binary, data if unreadable. ++ ++# XXX promoted from tex so that *.tfm is not mis-identified as mc68k file. ++# There is no way to detect TeX Font Metric (*.tfm) files without ++# breaking them apart and reading the data. The following patterns ++# match most *.tfm files generated by METAFONT or afm2tfm. ++2 string \000\021 TeX font metric data ++>33 string >\0 (%s) ++2 string \000\022 TeX font metric data ++>33 string >\0 (%s) diff --git a/file-4.06-autoconf.dif b/file-4.06-autoconf.dif new file mode 100644 index 0000000..7f99e44 --- /dev/null +++ b/file-4.06-autoconf.dif @@ -0,0 +1,76 @@ +--- acinclude.m4 ++++ acinclude.m4 Tue Jul 1 16:50:38 2003 +@@ -124,11 +124,7 @@ + [#if HAVE_STDINT_H + #include + #endif +-#include +-#ifdef STDC_HEADERS +-#include +-#endif +-]) ++$ac_includes_default]) + ]) + + +--- configure.in ++++ configure.in Tue Jul 1 16:51:52 2003 +@@ -81,12 +81,14 @@ + AC_CHECK_TYPE_STDC(int32_t, int) + AC_C_LONG_LONG + if test $ac_cv_c_long_long = yes; then +- long64='unsigned long long'; ++dnl long64='unsigned long long'; ++ AC_CHECK_TYPE(uint64_t, unsigned long long) + else +- long64='unsigned long'; ++dnl long64='unsigned long'; ++ AC_CHECK_TYPE(uint64_t, unsigned long) + fi + dnl This needs a patch to autoconf 2.13 acgeneral.m4 +-AC_CHECK_TYPE2_STDC(uint64_t, $long64) ++dnl AC_CHECK_TYPE2_STDC(uint64_t, $long64) + + AC_CHECK_SIZEOF_STDC_HEADERS(uint8_t, 0) + AC_CHECK_SIZEOF_STDC_HEADERS(uint16_t, 0) +--- doc/Makefile.am ++++ doc/Makefile.am Mon Dec 15 13:04:19 2003 +@@ -5,7 +5,8 @@ + man_MAGIC = magic.4 + endif + fsect = @fsect@ +-man_MANS = file.1 $(man_MAGIC) libmagic.3 ++#man_MANS = file.1 $(man_MAGIC) libmagic.3 ++man_MANS = file.1 magic.5 libmagic.3 + + EXTRA_DIST = file.man magic.man libmagic.man + CLEANFILES = $(man_MANS) +@@ -17,7 +18,8 @@ + -e s@__VERSION__@${VERSION}@g \ + -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@ + +-magic.${fsect}: Makefile magic.man ++#magic.${fsect}: Makefile magic.man ++magic.5: Makefile magic.man + @rm -f $@ + sed -e s@__CSECTION__@1@g \ + -e s@__FSECTION__@${fsect}@g \ +--- src/readelf.h ++++ src/readelf.h Tue Jul 1 16:53:55 2003 +@@ -36,7 +36,10 @@ + #ifndef __fake_elf_h__ + #define __fake_elf_h__ + ++#include ++ + #if HAVE_STDINT_H ++__BEGIN_DECLS + #include + #endif + +@@ -233,4 +236,5 @@ + #define GNU_OS_HURD 1 + #define GNU_OS_SOLARIS 2 + ++__END_DECLS + #endif diff --git a/file-4.06-exec.dif b/file-4.06-exec.dif new file mode 100644 index 0000000..9e3bfda --- /dev/null +++ b/file-4.06-exec.dif @@ -0,0 +1,134 @@ +--- magic/Magdir/commands ++++ magic/Magdir/commands 2006-03-24 14:59:41.000000000 +0100 +@@ -3,55 +3,55 @@ + # commands: file(1) magic for various shells and interpreters + # + 0 string : shell archive or script for antique kernel text +-0 string/b #!\ /bin/sh Bourne shell script text executable +-0 string/b #!\ /bin/csh C shell script text executable ++0 string/b #!\ /bin/sh Bourne shell script text ++0 string/b #!\ /bin/csh C shell script text + # korn shell magic, sent by George Wu, gwu@clyde.att.com +-0 string/b #!\ /bin/ksh Korn shell script text executable +-0 string/b #!\ /bin/tcsh Tenex C shell script text executable +-0 string/b #!\ /usr/bin/tcsh Tenex C shell script text executable +-0 string/b #!\ /usr/local/tcsh Tenex C shell script text executable +-0 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text executable ++0 string/b #!\ /bin/ksh Korn shell script text ++0 string/b #!\ /bin/tcsh Tenex C shell script text ++0 string/b #!\ /usr/bin/tcsh Tenex C shell script text ++0 string/b #!\ /usr/local/tcsh Tenex C shell script text ++0 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text + + # + # zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) +-0 string/b #!\ /bin/zsh Paul Falstad's zsh script text executable +-0 string/b #!\ /usr/bin/zsh Paul Falstad's zsh script text executable +-0 string/b #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable +-0 string/b #!\ /usr/local/bin/ash Neil Brown's ash script text executable +-0 string/b #!\ /usr/local/bin/ae Neil Brown's ae script text executable +-0 string/b #!\ /bin/nawk new awk script text executable +-0 string/b #!\ /usr/bin/nawk new awk script text executable +-0 string/b #!\ /usr/local/bin/nawk new awk script text executable +-0 string/b #!\ /bin/gawk GNU awk script text executable +-0 string/b #!\ /usr/bin/gawk GNU awk script text executable +-0 string/b #!\ /usr/local/bin/gawk GNU awk script text executable ++0 string/b #!\ /bin/zsh Paul Falstad's zsh script text ++0 string/b #!\ /usr/bin/zsh Paul Falstad's zsh script text ++0 string/b #!\ /usr/local/bin/zsh Paul Falstad's zsh script text ++0 string/b #!\ /usr/local/bin/ash Neil Brown's ash script text ++0 string/b #!\ /usr/local/bin/ae Neil Brown's ae script text ++0 string/b #!\ /bin/nawk new awk script text ++0 string/b #!\ /usr/bin/nawk new awk script text ++0 string/b #!\ /usr/local/bin/nawk new awk script text ++0 string/b #!\ /bin/gawk GNU awk script text ++0 string/b #!\ /usr/bin/gawk GNU awk script text ++0 string/b #!\ /usr/local/bin/gawk GNU awk script text + # +-0 string/b #!\ /bin/awk awk script text executable +-0 string/b #!\ /usr/bin/awk awk script text executable ++0 string/b #!\ /bin/awk awk script text ++0 string/b #!\ /usr/bin/awk awk script text + # update to distinguish from *.vcf files + 0 regex BEGIN[[:space:]]*[{] awk script text + + # AT&T Bell Labs' Plan 9 shell +-0 string/b #!\ /bin/rc Plan 9 rc shell script text executable ++0 string/b #!\ /bin/rc Plan 9 rc shell script text + + # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) +-0 string/b #!\ /bin/bash Bourne-Again shell script text executable +-0 string/b #!\ /usr/bin/bash Bourne-Again shell script text executable +-0 string/b #!\ /usr/local/bash Bourne-Again shell script text executable +-0 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text executable ++0 string/b #!\ /bin/bash Bourne-Again shell script text ++0 string/b #!\ /usr/bin/bash Bourne-Again shell script text ++0 string/b #!\ /usr/local/bash Bourne-Again shell script text ++0 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text + + # using env + 0 string #!/usr/bin/env a +->15 string >\0 %s script text executable ++>15 string >\0 %s script text + 0 string #!\ /usr/bin/env a +->16 string >\0 %s script text executable ++>16 string >\0 %s script text + + # PHP scripts + # Ulf Harnhammar + 0 string/c = + # Send additions to +-0 string/b #!\ /bin/perl perl script text executable ++0 string/b #!\ /bin/perl perl script text + 0 string eval\ "exec\ /bin/perl perl script text +-0 string/b #!\ /usr/bin/perl perl script text executable ++0 string/b #!\ /usr/bin/perl perl script text + 0 string eval\ "exec\ /usr/bin/perl perl script text + 0 string/b #!\ /usr/local/bin/perl perl script text +-0 string eval\ "exec\ /usr/local/bin/perl perl script text executable ++0 string eval\ "exec\ /usr/local/bin/perl perl script text + 0 string eval\ '(exit\ $?0)'\ &&\ eval\ 'exec perl script text + + # a couple more, by me +--- magic/Magdir/python ++++ magic/Magdir/python 2006-03-24 14:51:26.000000000 +0100 +@@ -4,7 +4,7 @@ + # + # From: David Necas + # often the module starts with a multiline string +-0 string """ a python script text executable ++0 string """ a python script text + # MAGIC as specified in Python/import.c (1.5 to 2.3.0a) + # 20121 ( YEAR - 1995 ) + MONTH + DAY (little endian followed by "\r\n" + 0 belong 0x994e0d0a python 1.5/1.6 byte-compiled +--- magic/Magdir/varied.script ++++ magic/Magdir/varied.script 2006-03-24 14:51:26.000000000 +0100 +@@ -2,11 +2,11 @@ + # varied.script: file(1) magic for various interpreter scripts + + 0 string #!\ / a +->3 string >\0 %s script text executable ++>3 string >\0 %s script text + 0 string #!\ / a +->3 string >\0 %s script text executable ++>3 string >\0 %s script text + 0 string #!/ a +->2 string >\0 %s script text executable +-0 string #!\ script text executable ++>2 string >\0 %s script text ++0 string #!\ script text + >3 string >\0 for %s + diff --git a/file-4.12-pcp.dif b/file-4.12-pcp.dif new file mode 100644 index 0000000..0bfc860 --- /dev/null +++ b/file-4.12-pcp.dif @@ -0,0 +1,30 @@ +--- magic/Magdir/sgi ++++ magic/Magdir/sgi Fri Nov 26 15:09:36 2004 +@@ -8,12 +8,12 @@ + 0 string PmNs PCP compiled namespace (V.0) + 0 string PmN PCP compiled namespace + >3 string >\0 (V.%1.1s) +-3 lelong 0x84500526 PCP archive ++3 belong 0x84500526 PCP archive + >7 byte x (V.%d) +->20 lelong -2 temporal index +->20 lelong -1 metadata +->20 lelong 0 log volume #0 +->20 lelong >0 log volume #%ld ++>20 belong -2 temporal index ++>20 belong -1 metadata ++>20 belong 0 log volume #0 ++>20 belong >0 log volume #%ld + >24 string >\0 host: %s + 0 string PCPFolio PCP + >9 string Version: Archive Folio +@@ -27,6 +27,9 @@ + 0 string #pmlogger PCP pmlogger config + >10 string Version + >18 string >\0 (V%1.1s) ++0 string #pmdahotproc PCP pmdahotproc config ++>13 string Version ++>21 string >\0 (V%-3.3s) + 0 string PcPh PCP Help + >4 string 1 Index + >4 string 2 Text diff --git a/file-4.13-cracklib.dif b/file-4.13-cracklib.dif new file mode 100644 index 0000000..3d15b34 --- /dev/null +++ b/file-4.13-cracklib.dif @@ -0,0 +1,20 @@ +--- magic/Magdir/cracklib ++++ magic/Magdir/cracklib 2005-07-01 12:18:53.000000000 +0200 +@@ -0,0 +1,7 @@ ++#------------------------------------------------------------------------------ ++# cracklib: file (1) magic for cracklib v2.7 ++ ++0 lelong 0x70775631 Cracklib password index, little endian ++>4 lelong >0 (%i words) ++0 belong 0x70775631 Cracklib password index, big endian ++>4 belong >0 (%i words) +--- magic/Makefile.am ++++ magic/Makefile.am 2005-07-01 12:19:28.000000000 +0200 +@@ -59,6 +59,7 @@ + Magdir/console \ + Magdir/convex \ + Magdir/ctags \ ++Magdir/cracklib \ + Magdir/dact \ + Magdir/database \ + Magdir/diamond \ diff --git a/file-4.13-netware.diff b/file-4.13-netware.diff new file mode 100644 index 0000000..5b18187 --- /dev/null +++ b/file-4.13-netware.diff @@ -0,0 +1,17 @@ +--- magic/Magdir/netware ++++ magic/Magdir/netware +@@ -0,0 +1,4 @@ ++#------------------------------------------------------------------------------ ++# netware: file(1) magic for NetWare Loadable Modules (NLMs) ++ ++0 string NetWare\ Loadable\ Module NetWare Loadable Module +--- magic/Makefile.am ++++ magic/Makefile.am +@@ -128,6 +128,7 @@ + Magdir/ncr \ + Magdir/netbsd \ + Magdir/netscape \ ++Magdir/netware \ + Magdir/news \ + Magdir/nitpicker \ + Magdir/ocaml \ diff --git a/file-4.16-mips.dif b/file-4.16-mips.dif new file mode 100644 index 0000000..408f0a1 --- /dev/null +++ b/file-4.16-mips.dif @@ -0,0 +1,92 @@ +--- magic/Magdir/elf ++++ magic/Magdir/elf 2005-10-19 15:10:09.000000000 +0200 +@@ -46,26 +46,26 @@ + >>18 leshort 8 + # only for 32-bit + >>>4 byte 1 +->>>>36 lelong&0xf0000000 0x00000000 MIPS-I +->>>>36 lelong&0xf0000000 0x10000000 MIPS-II +->>>>36 lelong&0xf0000000 0x20000000 MIPS-III +->>>>36 lelong&0xf0000000 0x30000000 MIPS-IV +->>>>36 lelong&0xf0000000 0x40000000 MIPS-V +->>>>36 lelong&0xf0000000 0x60000000 MIPS32 +->>>>36 lelong&0xf0000000 0x70000000 MIPS64 +->>>>36 lelong&0xf0000000 0x80000000 MIPS32 rel2 +->>>>36 lelong&0xf0000000 0x90000000 MIPS64 rel2 ++#>>>>36 lelong&0xf0000000 0x00000000 MIPS-I ++#>>>>36 lelong&0xf0000000 0x10000000 MIPS-II ++#>>>>36 lelong&0xf0000000 0x20000000 MIPS-III ++#>>>>36 lelong&0xf0000000 0x30000000 MIPS-IV ++#>>>>36 lelong&0xf0000000 0x40000000 MIPS-V ++#>>>>36 lelong&0xf0000000 0x60000000 MIPS32 ++#>>>>36 lelong&0xf0000000 0x70000000 MIPS64 ++#>>>>36 lelong&0xf0000000 0x80000000 MIPS32 rel2 ++#>>>>36 lelong&0xf0000000 0x90000000 MIPS64 rel2 + # only for 64-bit + >>>4 byte 2 +->>>>48 lelong&0xf0000000 0x00000000 MIPS-I +->>>>48 lelong&0xf0000000 0x10000000 MIPS-II +->>>>48 lelong&0xf0000000 0x20000000 MIPS-III +->>>>48 lelong&0xf0000000 0x30000000 MIPS-IV +->>>>48 lelong&0xf0000000 0x40000000 MIPS-V +->>>>48 lelong&0xf0000000 0x60000000 MIPS32 +->>>>48 lelong&0xf0000000 0x70000000 MIPS64 +->>>>48 lelong&0xf0000000 0x80000000 MIPS32 rel2 +->>>>48 lelong&0xf0000000 0x90000000 MIPS64 rel2 ++#>>>>48 lelong&0xf0000000 0x00000000 MIPS-I ++#>>>>48 lelong&0xf0000000 0x10000000 MIPS-II ++#>>>>48 lelong&0xf0000000 0x20000000 MIPS-III ++#>>>>48 lelong&0xf0000000 0x30000000 MIPS-IV ++#>>>>48 lelong&0xf0000000 0x40000000 MIPS-V ++#>>>>48 lelong&0xf0000000 0x60000000 MIPS32 ++#>>>>48 lelong&0xf0000000 0x70000000 MIPS64 ++#>>>>48 lelong&0xf0000000 0x80000000 MIPS32 rel2 ++#>>>>48 lelong&0xf0000000 0x90000000 MIPS64 rel2 + >>18 leshort 9 Amdahl - invalid byte order, + >>18 leshort 10 MIPS (deprecated), + >>18 leshort 11 RS6000 - invalid byte order, +@@ -132,26 +132,26 @@ + >>18 beshort 8 + # only for 32-bit + >>>4 byte 1 +->>>>36 belong&0xf0000000 0x00000000 MIPS-I +->>>>36 belong&0xf0000000 0x10000000 MIPS-II +->>>>36 belong&0xf0000000 0x20000000 MIPS-III +->>>>36 belong&0xf0000000 0x30000000 MIPS-IV +->>>>36 belong&0xf0000000 0x40000000 MIPS-V +->>>>36 belong&0xf0000000 0x60000000 MIPS32 +->>>>36 belong&0xf0000000 0x70000000 MIPS64 +->>>>36 belong&0xf0000000 0x80000000 MIPS32 rel2 +->>>>36 belong&0xf0000000 0x90000000 MIPS64 rel2 ++#>>>>36 belong&0xf0000000 0x00000000 MIPS-I ++#>>>>36 belong&0xf0000000 0x10000000 MIPS-II ++#>>>>36 belong&0xf0000000 0x20000000 MIPS-III ++#>>>>36 belong&0xf0000000 0x30000000 MIPS-IV ++#>>>>36 belong&0xf0000000 0x40000000 MIPS-V ++#>>>>36 belong&0xf0000000 0x60000000 MIPS32 ++#>>>>36 belong&0xf0000000 0x70000000 MIPS64 ++#>>>>36 belong&0xf0000000 0x80000000 MIPS32 rel2 ++#>>>>36 belong&0xf0000000 0x90000000 MIPS64 rel2 + # only for 64-bit + >>>4 byte 2 +->>>>48 belong&0xf0000000 0x00000000 MIPS-I +->>>>48 belong&0xf0000000 0x10000000 MIPS-II +->>>>48 belong&0xf0000000 0x20000000 MIPS-III +->>>>48 belong&0xf0000000 0x30000000 MIPS-IV +->>>>48 belong&0xf0000000 0x40000000 MIPS-V +->>>>48 belong&0xf0000000 0x60000000 MIPS32 +->>>>48 belong&0xf0000000 0x70000000 MIPS64 +->>>>48 belong&0xf0000000 0x80000000 MIPS32 rel2 +->>>>48 belong&0xf0000000 0x90000000 MIPS64 rel2 ++#>>>>48 belong&0xf0000000 0x00000000 MIPS-I ++#>>>>48 belong&0xf0000000 0x10000000 MIPS-II ++#>>>>48 belong&0xf0000000 0x20000000 MIPS-III ++#>>>>48 belong&0xf0000000 0x30000000 MIPS-IV ++#>>>>48 belong&0xf0000000 0x40000000 MIPS-V ++#>>>>48 belong&0xf0000000 0x60000000 MIPS32 ++#>>>>48 belong&0xf0000000 0x70000000 MIPS64 ++#>>>>48 belong&0xf0000000 0x80000000 MIPS32 rel2 ++#>>>>48 belong&0xf0000000 0x90000000 MIPS64 rel2 + >>18 beshort 9 Amdahl, + >>18 beshort 10 MIPS (deprecated), + >>18 beshort 11 RS6000, diff --git a/file-4.16-ssd.dif b/file-4.16-ssd.dif new file mode 100644 index 0000000..14269f8 --- /dev/null +++ b/file-4.16-ssd.dif @@ -0,0 +1,18 @@ +--- magic/Localstuff ++++ magic/Localstuff 2005-12-06 13:49:53.000000000 +0100 +@@ -14,3 +14,15 @@ + >33 string >\0 (%s) + 2 string \000\022 TeX font metric data + >33 string >\0 (%s) ++ ++# XXX some MS Structured Storage Documents such as Adobe PageMaker[tm] ++# files interfere with the Microsoft Office Document and the SSD starting ++# sequence \320\317\021\340\241\261\032\341. Anyone who knows ++# more details about the scheme of such SSDs and can help to extend this to all ++# type of SSD, please let us know. E.g. how is the offset to the `Root Entry' ++# determined? ++1024 string R\0o\0o\0t\0\ \0E\0n\0t\0r\0y Structured Storage ++>1152 string P\0a\0g\0e\0M\0a\0k\0e\0r PageMaker ++ ++512 string R\0o\0o\0t\0\ \0E\0n\0t\0r\0y Structured Storage ++>640 string P\0a\0g\0e\0M\0a\0k\0e\0r PageMaker diff --git a/file-4.16-xen.dif b/file-4.16-xen.dif new file mode 100644 index 0000000..8b1474b --- /dev/null +++ b/file-4.16-xen.dif @@ -0,0 +1,12 @@ +--- magic/Localstuff ++++ magic/Localstuff 2006-01-16 17:19:47.000000000 +0100 +@@ -26,3 +26,9 @@ + + 512 string R\0o\0o\0t\0\ \0E\0n\0t\0r\0y Structured Storage + >640 string P\0a\0g\0e\0M\0a\0k\0e\0r PageMaker ++ ++# File magic for Xen, the virtual machine monitor for x86 ++0 string LinuxGuestRecord Xen saved domain ++#>2 regex \(name\ [^)]*\) %s ++>20 search/256 (name (name ++>>&1 string x %s...) diff --git a/file-4.18-elf.dif b/file-4.18-elf.dif new file mode 100644 index 0000000..f656ec3 --- /dev/null +++ b/file-4.18-elf.dif @@ -0,0 +1,22 @@ +--- src/readelf.c ++++ src/readelf.c 2006-11-22 15:54:30.000000000 +0100 +@@ -621,7 +621,7 @@ core: + + default: + if (xnh_type == NT_PRPSINFO) { +- size_t i, j; ++ size_t i, j, m = 0; + unsigned char c; + /* + * Extract the program name. We assume +@@ -633,7 +633,9 @@ core: + * If the characters aren't all printable, + * reject it. + */ +- for (i = 0; i < NOFFSETS; i++) { ++ if (os_style == OS_STYLE_SVR4) ++ m = 1; ++ for (i = m; i < NOFFSETS; i++) { + size_t reloffset = prpsoffsets(i); + size_t noffset = doff + reloffset; + for (j = 0; j < 16; j++, noffset++, diff --git a/file-4.18-misc.dif b/file-4.18-misc.dif new file mode 100644 index 0000000..5449c04 --- /dev/null +++ b/file-4.18-misc.dif @@ -0,0 +1,144 @@ +--- magic/Magdir/audio ++++ magic/Magdir/audio 2003-12-08 17:50:33.000000000 +0100 +@@ -96,13 +96,13 @@ + + # Real Audio (Magic .ra\0375) + 0 belong 0x2e7261fd RealAudio sound file +-0 string .RMF RealMedia file ++0 string .RMF\0\0\0 RealMedia file + + # MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@dialin.ind.net] + # Oct 31, 1995 + # fixed by 2003-06-24 + # Too short... +-#0 string MTM MultiTracker Module sound file ++#0 string MTM MultiTracker Module sound data + #0 string if Composer 669 Module sound data + #0 string JN Composer 669 Module sound data (extended format) + 0 string MAS_U ULT(imate) Module sound data +--- magic/Magdir/bsdi ++++ magic/Magdir/bsdi 2003-12-08 17:50:03.000000000 +0100 +@@ -19,7 +19,7 @@ + >32 byte 0x6a (uses shared libs) + + # same as in SunOS 4.x, except for static shared libraries +-0 belong&077777777 0600413 sparc demand paged ++0 belong&077777777 0600413 SPARC demand paged + >0 byte &0x80 + >>20 belong <4096 shared library + >>20 belong =4096 dynamically linked executable +@@ -28,13 +28,13 @@ + >16 belong >0 not stripped + >36 belong 0xb4100001 (uses shared libs) + +-0 belong&077777777 0600410 sparc pure ++0 belong&077777777 0600410 SPARC pure + >0 byte &0x80 dynamically linked executable + >0 byte ^0x80 executable + >16 belong >0 not stripped + >36 belong 0xb4100001 (uses shared libs) + +-0 belong&077777777 0600407 sparc ++0 belong&077777777 0600407 SPARC + >0 byte &0x80 dynamically linked executable + >0 byte ^0x80 executable + >16 belong >0 not stripped +--- magic/Magdir/commands ++++ magic/Magdir/commands 2003-12-08 17:50:03.000000000 +0100 +@@ -8,6 +8,7 @@ + # korn shell magic, sent by George Wu, gwu@clyde.att.com + 0 string/b #!\ /bin/ksh Korn shell script text executable + 0 string/b #!\ /bin/tcsh Tenex C shell script text executable ++0 string/b #!\ /usr/bin/tcsh Tenex C shell script text executable + 0 string/b #!\ /usr/local/tcsh Tenex C shell script text executable + 0 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text executable + +@@ -35,6 +36,8 @@ + + # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) + 0 string/b #!\ /bin/bash Bourne-Again shell script text executable ++0 string/b #!\ /usr/bin/bash Bourne-Again shell script text executable ++0 string/b #!\ /usr/local/bash Bourne-Again shell script text executable + 0 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text executable + + # using env +--- magic/Magdir/mach ++++ magic/Magdir/mach 2003-12-08 17:50:03.000000000 +0100 +@@ -74,7 +74,7 @@ + >4 belong 11 hppa + >4 belong 12 acorn + >4 belong 13 m88k +->4 belong 14 sparc ++>4 belong 14 SPARC + >4 belong 15 i860-big + >4 belong 16 i860 + >4 belong 17 rs6000 +--- magic/Magdir/msdos ++++ magic/Magdir/msdos 2005-07-25 15:24:04.000000000 +0200 +@@ -248,7 +248,7 @@ + + # a few unknown ZIP sfxes, no idea if they are needed or if they are + # already captured by the generic patterns above +->122 string Windows\ self-extracting\ ZIP \b, ZIP self-extracting archive ++>0x7a string Windows\ self-extracting\ ZIP \b, ZIP self-extracting archive + >(8.s*16) search/0x20 PKSFX \b, ZIP self-extracting archive (PKZIP) + # TODO: how to add this? >FileSize-34 string Windows\ Self-Installing\ Executable \b, ZIP self-extracting archive + # +--- magic/Magdir/netbsd ++++ magic/Magdir/netbsd 2003-12-08 17:50:03.000000000 +0100 +@@ -101,25 +101,25 @@ + 0 belong&0377777777 045200507 a.out NetBSD/powerpc core + >12 string >\0 from '%s' + +-0 belong&0377777777 042400413 a.out NetBSD/sparc demand paged ++0 belong&0377777777 042400413 a.out NetBSD/SPARC demand paged + >0 byte &0x80 + >>20 belong <8192 shared library + >>20 belong =8192 dynamically linked executable + >>20 belong >8192 dynamically linked executable + >0 byte ^0x80 executable + >16 belong >0 not stripped +-0 belong&0377777777 042400410 a.out NetBSD/sparc pure ++0 belong&0377777777 042400410 a.out NetBSD/SPARC pure + >0 byte &0x80 dynamically linked executable + >0 byte ^0x80 executable + >16 belong >0 not stripped +-0 belong&0377777777 042400407 a.out NetBSD/sparc ++0 belong&0377777777 042400407 a.out NetBSD/SPARC + >0 byte &0x80 dynamically linked executable + >0 byte ^0x80 + >>0 byte &0x40 position independent + >>20 belong !0 executable + >>20 belong =0 object file + >16 belong >0 not stripped +-0 belong&0377777777 042400507 a.out NetBSD/sparc core ++0 belong&0377777777 042400507 a.out NetBSD/SPARC core + >12 string >\0 from '%s' + >32 belong !0 (signal %d) + +--- magic/Magdir/sun ++++ magic/Magdir/sun 2006-11-22 15:49:20.000000000 +0100 +@@ -5,7 +5,7 @@ + # Values for big-endian Sun (MC680x0, SPARC) binaries on pre-5.x + # releases. (5.x uses ELF.) + # +-0 belong&077777777 0600413 sparc demand paged ++0 belong&077777777 0600413 SPARC demand paged + >0 byte &0x80 + >>20 belong <4096 shared library + >>20 belong =4096 dynamically linked executable +@@ -13,12 +13,12 @@ + >0 byte ^0x80 executable + >16 belong >0 not stripped + +-0 belong&077777777 0600410 sparc pure ++0 belong&077777777 0600410 SPARC pure + >0 byte &0x80 dynamically linked executable + >0 byte ^0x80 executable + >16 belong >0 not stripped + +-0 belong&077777777 0600407 sparc ++0 belong&077777777 0600407 SPARC + >0 byte &0x80 dynamically linked executable + >0 byte ^0x80 executable + >16 belong >0 not stripped diff --git a/file-4.18-printf.dif b/file-4.18-printf.dif new file mode 100644 index 0000000..1da97bc --- /dev/null +++ b/file-4.18-printf.dif @@ -0,0 +1,52 @@ +--- src/apprentice.c ++++ src/apprentice.c 2006-11-22 16:09:57.000000000 +0000 +@@ -886,8 +886,16 @@ + quad = 1; + /*FALLTHROUGH*/ + case FILE_FMT_NUM: ++ if (*ptr == '#') ++ ptr++; ++ if (*ptr == ' ') ++ ptr++; + if (*ptr == '-') + ptr++; ++ if (*ptr == '+') ++ ptr++; ++ if (*ptr == '\'') ++ ptr++; + if (*ptr == '.') + ptr++; + while (isdigit((unsigned char)*ptr)) ptr++; +@@ -907,6 +915,7 @@ + case 'i': + case 'd': + case 'u': ++ case 'o': + case 'x': + case 'X': + return 0; +@@ -921,12 +930,16 @@ + case 'i': + case 'd': + case 'u': ++ case 'o': + case 'x': + case 'X': + return 0; + default: + return -1; + } ++ case 'o': ++ case 'x': ++ case 'X': + case 'd': + return 0; + default: +@@ -937,6 +950,7 @@ + case 'c': + case 'd': + case 'u': ++ case 'o': + case 'x': + case 'X': + return 0; diff --git a/file-4.18.dif b/file-4.18.dif new file mode 100644 index 0000000..d3c664c --- /dev/null +++ b/file-4.18.dif @@ -0,0 +1,440 @@ +--- .pkgextract ++++ .pkgextract 2006-03-27 13:29:19.000000000 +0200 +@@ -0,0 +1,11 @@ ++patch -p0 -s --suffix=.misc < ../file-4.18-misc.dif ++patch -p0 -s --suffix=.pcp < ../file-4.12-pcp.dif ++patch -p0 -s --suffix=.exec < ../file-4.06-exec.dif ++patch -p0 -s --suffix=.conf < ../file-4.06-autoconf.dif ++patch -p0 -s --suffix=.tex < ../file-4.03-tex.dif ++patch -p0 -s --suffix=.policy < ../file-selinux.dif ++patch -p0 -s --suffix=.ntwr < ../file-4.13-netware.diff ++patch -p0 -s --suffix=.crlib< ../file-4.13-cracklib.dif ++patch -p0 -s --suffix=.pm < ../file-4.16-ssd.dif ++patch -p0 -s --suffix=.xen < ../file-4.16-xen.dif ++patch -p0 -s --suffix=.elf < ../file-4.18-elf.dif +--- magic/Header ++++ magic/Header 2006-03-27 13:29:19.000000000 +0200 +@@ -1,5 +1,7 @@ + # 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). ++# ++# Note: If you have edited this file you may run `file -C' ++# to make a pre-compiled magic.mgc for faster execution ++# +--- magic/Makefile.am ++++ magic/Makefile.am 2006-03-27 13:29:19.000000000 +0200 +@@ -38,7 +38,6 @@ Magdir/amanda \ + Magdir/amigaos \ + Magdir/animation \ + Magdir/apl \ +-Magdir/apple \ + Magdir/applix \ + Magdir/archive \ + Magdir/asterix \ +@@ -83,7 +82,6 @@ Magdir/encore \ + Magdir/epoc \ + Magdir/esri \ + Magdir/fcs \ +-Magdir/filesystems \ + Magdir/flash \ + Magdir/fonts \ + Magdir/frame \ +@@ -109,14 +107,14 @@ Magdir/island \ + Magdir/ispell \ + Magdir/java \ + Magdir/jpeg \ ++Magdir/linux \ ++Magdir/filesystems \ + Magdir/karma \ + Magdir/lecter \ + Magdir/lex \ + Magdir/lif \ +-Magdir/linux \ + Magdir/lisp \ + Magdir/mach \ +-Magdir/macintosh \ + Magdir/magic \ + Magdir/mail.news \ + Magdir/maple \ +@@ -130,11 +128,11 @@ Magdir/misctools \ + Magdir/mkid \ + Magdir/mlssa \ + Magdir/mmdf \ +-Magdir/modem \ ++Magdir/msad \ + Magdir/motorola \ + Magdir/msdos \ ++Magdir/modem \ + Magdir/msvc \ +-Magdir/mup \ + Magdir/natinst \ + Magdir/ncr \ + Magdir/netbsd \ +@@ -169,6 +167,8 @@ Magdir/pyramid \ + Magdir/python \ + Magdir/revision \ + Magdir/riff \ ++Magdir/apple \ ++Magdir/macintosh \ + Magdir/rpm \ + Magdir/rtf \ + Magdir/sc \ +--- magic/Magdir/elf ++++ magic/Magdir/elf 2006-11-22 15:57:15.000000000 +0100 +@@ -92,7 +92,7 @@ + >>18 leshort 47 Renesas H8/300H, + >>18 leshort 48 Renesas H8S, + >>18 leshort 49 Renesas H8/500, +->>18 leshort 50 IA-64, ++>>18 leshort 50 IA-64 (Intel 64 bit architecture), + >>18 leshort 51 Stanford MIPS-X, + >>18 leshort 52 Motorola Coldfire, + >>18 leshort 53 Motorola M68HC12, +@@ -184,7 +184,7 @@ + >>18 beshort 47 Renesas H8/300H, + >>18 beshort 48 Renesas H8S, + >>18 beshort 49 Renesas H8/500, +->>18 beshort 50 IA-64, ++>>18 beshort 50 IA-64 (Intel 64 bit architecture), + >>18 beshort 51 Stanford MIPS-X, + >>18 beshort 52 Motorola Coldfire, + >>18 beshort 53 Motorola M68HC12, +--- magic/Magdir/linux ++++ magic/Magdir/linux 2006-03-27 13:29:19.000000000 +0200 +@@ -82,21 +82,43 @@ + # and Nicolás Lichtmaier + # All known start with: b8 c0 07 8e d8 b8 00 90 8e c0 b9 00 01 29 f6 29 + # Linux kernel boot images (i386 arch) (Wolfram Kleff) +-514 string HdrS Linux kernel +->510 leshort 0xAA55 x86 boot executable +->>518 leshort >=0x200 +->>529 byte 0 zImage, +->>>529 byte 1 bzImage, +->>>(526.s+0x200) string >\0 version %s, +->>498 leshort 1 RO-rootFS, +->>498 leshort 0 RW-rootFS, +->>508 leshort >0 root_dev 0x%X, +->>502 leshort >0 swap_dev 0x%X, +->>504 leshort >0 RAMdisksize %u KB, +->>506 leshort 0xFFFF Normal VGA +->>506 leshort 0xFFFE Extended VGA +->>506 leshort 0xFFFD Prompt for Videomode +->>506 leshort >0 Video mode %d ++514 string HdrS Linux ++>510 leshort 0xAA55 \b/x86 Kernel ++>510 leshort <0xAA55 Kernel ++>510 leshort >0xAA55 Kernel ++>518 leshort 0x0105 \b, Setup Version 0x105, zImage ++>518 leshort >0x0105 \b, Setup Version %#hx ++>>529 byte 0 \b, zImage ++>>529 byte 1 \b, bzImage ++>>>(526.s+0x205) byte 32 ++>>>>(526.s+0x200) string >\0 \b, Version %5.5s ++>>>(526.s+0x206) byte 32 ++>>>>(526.s+0x200) string >\0 \b, Version %6.6s ++>>>(526.s+0x207) byte 32 ++>>>>(526.s+0x200) string >\0 \b, Version %7.7s ++>>>(526.s+0x205) byte 45 ++>>>>(526.s+0x200) string >\0 \b, Version %5.5s ++>>>(526.s+0x206) byte 45 ++>>>>(526.s+0x200) string >\0 \b, Version %6.6s ++>>>(526.s+0x207) byte 45 ++>>>>(526.s+0x200) string >\0 \b, Version %7.7s ++>>>(526.s+0x208) byte 45 ++>>>>(526.s+0x200) string >\0 \b, Version %8.8s ++>>>(526.s+0x209) byte 45 ++>>>>(526.s+0x200) string >\0 \b, Version %9.9s ++>>>(526.s+0x20a) byte 45 ++>>>>(526.s+0x200) string >\0 \b, Version %10.10s ++>>>(526.s+0x20b) byte 45 ++>>>>(526.s+0x200) string >\0 \b, Version %11.11s ++>>498 leshort 1 \b, RO-rootFS ++>>498 leshort 0 \b, RW-rootFS ++>>508 leshort >0 \b, root_dev 0x%X ++>>502 leshort >0 \b, swap_dev 0x%X ++>>504 leshort >0 \b, RAMdisksize %u KB ++>>506 leshort 0xFFFF \b, Normal VGA ++>>506 leshort 0xFFFE \b, Extended VGA ++>>506 leshort 0xFFFD \b, Prompt for Videomode ++>>506 leshort >0 \b, Video mode %d + # This also matches new kernels, which were caught above by "HdrS". + 0 belong 0xb8c0078e Linux kernel + >0x1e3 string Loading version 1.3.79 or older +--- magic/Magdir/modem ++++ magic/Magdir/modem 2006-03-27 13:29:19.000000000 +0200 +@@ -2,9 +2,9 @@ + # modem: file(1) magic for modem programs + # + # From: Florian La Roche +-4 string Research, Digifax-G3-File +->29 byte 1 , fine resolution +->29 byte 0 , normal resolution ++1 string PC\ Research,\ Inc Digifax-G3-File ++>29 byte 1 \b, fine resolution ++>29 byte 0 \b, normal resolution + + 0 short 0x0100 raw G3 data, byte-padded + 0 short 0x1400 raw G3 data +--- magic/Magdir/msad ++++ magic/Magdir/msad 2006-03-27 13:29:19.000000000 +0200 +@@ -0,0 +1,5 @@ ++#------------------------------------------------------------------------------ ++# msad: file(1) magic for msad ++# Microsoft visual C ++# This must precede the heuristic for raw G3 data ++4 string Standard\ Jet\ DB Microsoft Access Database +--- magic/Magdir/msdos ++++ magic/Magdir/msdos 2006-11-22 16:01:01.000000000 +0100 +@@ -62,6 +62,7 @@ + >>&0 leshort 0x290 PA-RISC + >>&18 leshort&0x0100 >0 32-bit + >>&18 leshort&0x1000 >0 system file ++>>&228 lelong >0 \b, Mono/.Net assembly + >>&0xf4 search/0x140 \x0\x40\x1\x0 + >>>(&0.l+(4)) string MSCF \b, WinHKI CAB self-extracting archive + +@@ -86,7 +87,7 @@ + >>>>(0x3c.l+4) leshort 0x290 PA-RISC + >>>>(0x3c.l+22) leshort&0x0100 >0 32-bit + >>>>(0x3c.l+22) leshort&0x1000 >0 system file +->>>>(0x3c.l+232) lelong >0 Mono/.Net assembly ++>>>>(0x3c.l+232) lelong >0 \b, Mono/.Net assembly + + >>>>(0x3c.l+0xf8) string UPX0 \b, UPX compressed + >>>>(0x3c.l+0xf8) search/0x140 PEC2 \b, PECompact2 compressed +@@ -472,6 +473,13 @@ + # Acroread or something files wrongly identified as G3 .pfm + # these have the form \000 \001 any? \002 \000 \000 + # or \000 \001 any? \022 \000 \000 ++0 belong&0xffff00ff 0x00010012 PFM data ++>4 string \000\000 ++>6 string >\060 - %s ++ ++0 belong&0xffff00ff 0x00010002 PFM data ++>4 string \000\000 ++>6 string >\060 - %s + #0 string \000\001 pfm? + #>3 string \022\000\000Copyright\ yes + #>3 string \002\000\000Copyright\ yes +--- src/Makefile.am ++++ src/Makefile.am 2006-03-27 13:29:19.000000000 +0200 +@@ -1,4 +1,4 @@ +-MAGIC = $(pkgdatadir)/magic ++MAGIC = $(sysconfdir)/magic:$(pkgdatadir)/magic + lib_LTLIBRARIES = libmagic.la + include_HEADERS = magic.h + EXTRA_DIST = test.c +--- src/dcore.c ++++ src/dcore.c 2006-03-27 13:29:19.000000000 +0200 +@@ -0,0 +1,207 @@ ++/* ++ * Show goo about ELF core files ++ * Jeremy Fitzhardinge 1996 ++ */ ++#include ++#include ++#include ++#include ++#include ++#include ++#if defined __GLIBC__ && __GLIBC__ >= 2 ++#include ++#include ++# ifndef NT_PRFPREG ++# define NT_PRFPREG 2 ++# endif ++# ifndef NT_TASKSTRUCT ++# define NT_TASKSTRUCT 4 ++# endif ++#else ++#include ++#include ++#endif ++ ++static void fperror(const char *str) ++{ ++ perror(str); ++ exit(1); ++} ++ ++static size_t myread(int fd, void *buf, size_t sz) ++{ ++ size_t ret; ++ ++ if ((ret = read(fd, buf, sz)) != sz) ++ fperror("read failed"); ++ return ret; ++} ++ ++static void print_prstatus(const prstatus_t *pr) ++{ ++ unsigned i; ++ static const char *regs[] = { "ebx", "ecx", "edx", "esi", "edi", "ebp", ++ "eax", "ds", "es", "fs", "gs", ++ "orig_eax", "eip", "cs", ++ "efl", "uesp", "ss"}; ++ ++ printf(" pid=%d ppid=%d pgrp=%d sid=%d\n", ++ pr->pr_pid, pr->pr_ppid, pr->pr_pgrp, pr->pr_sid); ++ for(i = 0; i < NGREG; i++) ++ { ++ unsigned long val = pr->pr_reg[i]; ++ printf(" %-2u %-5s=%08lx %lu\n", i, regs[i], val, val); ++ } ++} ++ ++static void print_prpsinfo(const prpsinfo_t *ps) ++{ ++ printf(" uid=%d gid=%d\n", ps->pr_uid, ps->pr_gid); ++ printf(" comm=%s\n", ps->pr_fname); ++ printf(" psargs=%s\n", ps->pr_psargs); ++} ++ ++#define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) ++ ++static void do_note(int fd, Elf32_Phdr *phdr) ++{ ++ off_t here = lseek(fd, 0, SEEK_CUR); ++ int size = phdr->p_filesz; ++ char *raw = alloca(size), *end; ++ end = raw+size; ++ ++ lseek(fd, phdr->p_offset, SEEK_SET); ++ myread(fd, raw, size); ++ ++ while(raw < end) ++ { ++ Elf32_Nhdr *note = (Elf32_Nhdr *)raw; ++ const char *str; ++ const char *name, *desc; ++ ++ raw += sizeof(*note); ++ name = raw; ++ raw += roundup(note->n_namesz, sizeof(long)); ++ desc = raw; ++ raw += roundup(note->n_descsz, sizeof(long)); ++ ++ printf(" name=%.*s", (int)note->n_namesz, name); ++ ++ if(strncmp(name, "CORE", note->n_namesz) != 0) ++ { ++ printf("\n"); ++ continue; ++ } ++ ++ switch(note->n_type) ++ { ++#define X(x) case x: str = #x; break; ++ X(NT_PRSTATUS); ++ X(NT_PRFPREG); ++ X(NT_PRPSINFO); ++ X(NT_TASKSTRUCT); ++#undef X ++ default: ++ str = "???"; ++ } ++ printf(" n_type=%s n_descsz=%ld\n", ++ str, note->n_descsz); ++ switch(note->n_type) ++ { ++ case NT_PRSTATUS: ++ print_prstatus((prstatus_t *)desc); ++ break; ++ case NT_PRPSINFO: ++ print_prpsinfo((prpsinfo_t *)desc); ++ break; ++ } ++ } ++ lseek(fd, here, SEEK_SET); ++} ++ ++int main(int argc, char *argv[]) ++{ ++ int fd; ++ Elf32_Ehdr elf; ++ int i; ++ ++ if (argc != 2) ++ { ++ fprintf(stderr, "Usage: %s corefile\n", argv[0]); ++ exit(1); ++ } ++ ++ if ((fd = open(argv[1], O_RDONLY)) == -1) ++ fperror("open of core"); ++ ++ myread(fd, &elf, sizeof(elf)); ++ ++ if (memcmp(ELFMAG, elf.e_ident, SELFMAG) != 0) ++ printf("bad magic\n"); ++ ++ if (elf.e_ident[EI_CLASS] != ELFCLASS32) ++ printf("wrong class\n"); ++ ++ if (elf.e_ident[EI_DATA] != ELFDATA2LSB) ++ printf("wrong endianess\n"); ++ ++ if (elf.e_ident[EI_VERSION] != EV_CURRENT) ++ printf("wrong version\n"); ++ ++ { ++ const char *str; ++ switch(elf.e_type) ++ { ++#define C(x) case ET_##x: str = #x; break; ++ C(NONE); ++ C(REL); ++ C(EXEC); ++ C(DYN); ++ C(CORE); ++#undef C ++ default: str = "???"; break; ++ } ++ printf("elf file type ET_%s\n", str); ++ } ++ ++ if (elf.e_machine != EM_386 && elf.e_machine != EM_486) ++ printf("not i386 or i486\n"); ++ ++ if (elf.e_ehsize != sizeof(elf)) ++ printf("wrong header size\n"); ++ ++ if (elf.e_phentsize != sizeof(Elf32_Phdr)) ++ printf("wrong phdr size\n"); ++ ++ if (lseek(fd, elf.e_phoff, SEEK_SET) != (off_t)elf.e_phoff) ++ fperror("lseek to phdr failed\n"); ++ ++ for(i = 0; i < elf.e_phnum; i++) ++ { ++ Elf32_Phdr phdr; ++ const char *str; ++ ++ myread(fd, &phdr, sizeof(phdr)); ++ switch(phdr.p_type) ++ { ++#define C(x) case PT_##x: str = #x; break; ++ C(NULL); ++ C(LOAD); ++ C(DYNAMIC); ++ C(INTERP); ++ C(NOTE); ++ C(SHLIB); ++ C(PHDR); ++#undef C ++ default: ++ str = "???"; break; ++ } ++ printf("type PT_%s off=%ld vaddr=%lx filesz=%ld flags=%lx\n", ++ str, phdr.p_offset, phdr.p_vaddr, phdr.p_filesz, ++ (unsigned long)phdr.p_flags); ++ if (phdr.p_type == PT_NOTE) ++ do_note(fd, &phdr); ++ } ++ exit(0); ++} ++ diff --git a/file-4.18.tar.bz2 b/file-4.18.tar.bz2 new file mode 100644 index 0000000..1ddc8e2 --- /dev/null +++ b/file-4.18.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c846910e85c4ec312344d5b62d76ba382244cbff9329f9badf8ba6dbe7150d4c +size 404308 diff --git a/file-selinux.dif b/file-selinux.dif new file mode 100644 index 0000000..af106bd --- /dev/null +++ b/file-selinux.dif @@ -0,0 +1,19 @@ +--- magic/Magdir/policy 2003-08-28 14:36:54.000000000 -0400 ++++ magic/Magdir/policy 2003-08-28 14:39:35.000000000 -0400 +@@ -0,0 +1,6 @@ ++# SE Linux policy database ++0 lelong 0xf97cff8c SE Linux policy ++>16 lelong x v%d ++>20 lelong 1 MLS ++>24 lelong x %d symbols ++>28 lelong x %d ocons +--- magic/Makefile.am 2003-08-28 14:41:58.000000000 -0400 ++++ magic/Makefile.am 2003-08-28 14:45:15.000000000 -0400 +@@ -135,6 +135,7 @@ + Magdir/pgp \ + Magdir/pkgadd \ + Magdir/plus5 \ ++Magdir/policy \ + Magdir/printer \ + Magdir/project \ + Magdir/psdbms \ diff --git a/file.changes b/file.changes new file mode 100644 index 0000000..29b9247 --- /dev/null +++ b/file.changes @@ -0,0 +1,408 @@ +------------------------------------------------------------------- +Thu Nov 23 17:15:17 CET 2006 - werner@suse.de + +- Initialize variable in elf patch + +------------------------------------------------------------------- +Wed Nov 22 16:14:33 CET 2006 - werner@suse.de + +- Update to new file 4.18 + * Includes most of our extensions (elf, fifo, softmagic) + +------------------------------------------------------------------- +Mon Jun 12 15:11:07 CEST 2006 - werner@suse.de + +- Reenable file to display process name from a core dump (#183685) + +------------------------------------------------------------------- +Fri Mar 24 15:35:48 CET 2006 - werner@suse.de + +- Update to file version 4.17 + * This version supports new key like `search' and `regex' + * Port our patches to this version + +------------------------------------------------------------------- +Mon Mar 27 13:26:50 CEST 2006 - werner@suse.de + +- Add Mono/.Net identfiers to msdos magics (bug #159708) + +------------------------------------------------------------------- +Wed Jan 25 21:30:11 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Jan 16 17:23:26 CET 2006 - werner@suse.de + +- Add Xen magics + +------------------------------------------------------------------- +Tue Dec 6 14:03:06 CET 2005 - werner@suse.de + +- Add Structured Storage Entry for PageMaker to local (bug #134895) + +------------------------------------------------------------------- +Thu Oct 20 11:19:53 CEST 2005 - werner@suse.de + +- Update to file version 4.16 + +------------------------------------------------------------------- +Tue Aug 23 13:58:51 CEST 2005 - werner@suse.de + +- Fix broken cracklib magic (bug #106007) + +------------------------------------------------------------------- +Mon Jul 25 17:05:17 CEST 2005 - werner@suse.de + +- Update to new file 4.14 +- Split of the development version as own package + +------------------------------------------------------------------- +Fri Jul 1 12:26:09 CEST 2005 - werner@suse.de + +- Even for netware the columns in the magic entry are seperated + by tabs +- Add cracklib magics (bug #93673) + +------------------------------------------------------------------- +Mon Jun 13 09:38:51 CEST 2005 - mmj@suse.de + +- Add primitive magic for detecting netware loadable modules (NLMs) +- Don't remove buildroot before install +- Don't strip binaries explicitly +- %doc is implied by %man + +------------------------------------------------------------------- +Thu Mar 17 20:22:49 CET 2005 - werner@suse.de + +- Be sure that the pipe/fifo patch works (bug #73644) + +------------------------------------------------------------------- +Thu Mar 10 13:40:18 CET 2005 - werner@suse.de + +- Be able to use the -s option even on pipes (bug #71074) +- Do not hang on sockets or pipes not opened on the write side + +------------------------------------------------------------------- +Fri Feb 18 14:08:21 CET 2005 - werner@suse.de + +- Update to file 4.13 for fixes in handling of bzip2 and DOS files +- Do not be fooled by minix filesystems magics on jpeg files + +------------------------------------------------------------------- +Fri Nov 26 16:24:37 CET 2004 - werner@suse.de + +- Update to file 4.12, this may fix a security issue (bug #48576) + +------------------------------------------------------------------- +Tue Sep 28 18:08:51 CEST 2004 - werner@suse.de + +- Correct PCP entries (bug #46111) + +------------------------------------------------------------------- +Thu Sep 16 15:56:46 CEST 2004 - werner@suse.de + +- Read HOWMANY bytes even from a pipe (reported by max) + +------------------------------------------------------------------- +Thu Aug 26 18:51:28 CEST 2004 - werner@suse.de + +- Update to bugfix release 4.09 + +------------------------------------------------------------------- +Tue Aug 24 13:35:39 CEST 2004 - lmuelle@suse.de + +- Add -fPIC to the CFLAGS. + +------------------------------------------------------------------- +Wed May 26 13:47:36 CEST 2004 - werner@suse.de + +- Don't trap into string formats if integers are provided (#41209) + +------------------------------------------------------------------- +Mon May 24 12:25:30 CEST 2004 - werner@suse.de + +- Check for random data within ELF header (bug #40909) + +------------------------------------------------------------------- +Thu Feb 12 16:30:51 CET 2004 - werner@suse.de + +- Add name offsets for CORE dumps even for 64bit ELF (bug #34461) + +------------------------------------------------------------------- +Tue Jan 20 14:59:22 CET 2004 - werner@suse.de + +- Update to 4.07 + +------------------------------------------------------------------- +Mon Dec 15 13:07:13 CET 2003 - werner@suse.de + +- Add workaround for new automake `feature' of ignoring man pages +- Ensure that the correct break condition is returned if readelf + past the end of the buffer (bug #33644). + +------------------------------------------------------------------- +Mon Dec 8 19:26:20 CET 2003 - werner@suse.de + +- Update to 4.06 +- Use /etc/magic:/usr/share/misc/magic as magic and move /etc/magic + to a real configuration file for _local_ settings (bug #32725). + +------------------------------------------------------------------- +Sat Oct 18 08:06:01 CEST 2003 - kukuk@suse.de + +- Add patch to detect policy file for SE Linux +- Build as normal user +- Clean up build root + +------------------------------------------------------------------- +Mon Sep 29 14:47:23 CEST 2003 - werner@suse.de + +- Avoid endless loop due wrong alignment in old ELF binaries + +------------------------------------------------------------------- +Tue Sep 16 13:29:50 CEST 2003 - werner@suse.de + +- Extend buffer from 64kb upto 68kB to find ReiserFS (bug #30736) + +------------------------------------------------------------------- +Wed Jul 2 14:15:20 CEST 2003 - werner@suse.de + +- Use _libdir + +------------------------------------------------------------------- +Tue Jul 1 18:38:23 CEST 2003 - werner@suse.de + +- Update to file 4.03 + +------------------------------------------------------------------- +Thu Apr 17 11:59:21 CEST 2003 - coolo@suse.de + +- use BuildRoot + +------------------------------------------------------------------- +Tue Mar 4 14:54:09 CET 2003 - werner@suse.de + +- Fix buffer overflow in elf detection + +------------------------------------------------------------------- +Tue Dec 17 22:36:09 CET 2002 - olh@suse.de + +- use RPM_BUILD_ROOT, not BUILD_ROOT in testsuite + +------------------------------------------------------------------- +Mon Nov 11 00:13:30 CET 2002 - ro@suse.de + +- fix deprecated multiline string literal (from longopt patch) + +------------------------------------------------------------------- +Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de + +- removed bogus self-provides + +------------------------------------------------------------------- +Tue Jul 23 14:36:03 CEST 2002 - werner@suse.de + +- Add mySQL bytes to magic (bug #16138) + +------------------------------------------------------------------- +Fri Jun 7 23:06:48 CEST 2002 - olh@suse.de + +- don't change the union u in readelf.c:tryelf() on ppc64 + +------------------------------------------------------------------- +Mon Feb 4 14:47:40 CET 2002 - werner@suse.de + +- Fix looking of manual page + +------------------------------------------------------------------- +Mon Feb 4 14:35:18 CET 2002 - werner@suse.de + +- Add some magics for METAFONT format files +- Add inofficial long options for LSB + +------------------------------------------------------------------- +Thu Dec 27 15:47:53 MET 2001 - adrian@suse.de + +- fix file output for mips binaries. The old output broke several + ltconfig scripts in other packages and was wrong anyway. +- recompress tar ball with bz2 + +------------------------------------------------------------------- +Wed Dec 19 15:50:32 CET 2001 - werner@suse.de + +- update to version 3.37 + +----------------------------------------------------------------- +Sat Jun 30 21:20:57 CEST 2001 - bk@suse.de + +- update to version 3.33 +- don't change the union u in readelf.c:tryelf() on s390x. +- option i: fix one-byte memory underallocation - strcat adds '\0' + +------------------------------------------------------------------- +Thu Jun 7 13:54:55 CEST 2001 - werner@suse.de + +- Autoconf and Elf header: make it work again + +------------------------------------------------------------------- +Fri May 4 11:12:55 CEST 2001 - werner@suse.de + +- Make symlink /etc/magic a relative one + +------------------------------------------------------------------- +Tue Jan 16 14:00:37 CET 2001 - werner@suse.de + +- Change order to find WAVE and TTF data before G3, apple and + macintosh data. +- Change string detection of PFM data to bit comparision masking + out the third bit to make raw G3 work. + +------------------------------------------------------------------- +Sun Dec 3 17:54:36 CET 2000 - schwab@suse.de + +- Don't match against artificial null byte. +- Fix resource leaks. + +------------------------------------------------------------------- +Tue Nov 28 10:03:56 CET 2000 - aj@suse.de + +- Add LFS support. + +------------------------------------------------------------------- +Tue Nov 14 15:43:16 CET 2000 - werner@suse.de + +- Correct version handling of Linux/i386 Kernel setup header + +------------------------------------------------------------------- +Mon Nov 13 17:18:05 CET 2000 - werner@suse.de + +- Fix handling of Microsoft Access Database in comparision + with Digifax-G3-File. + +------------------------------------------------------------------- +Tue Oct 3 21:40:00 CEST 2000 - kukuk@suse.de + +- fix inclusion of config.h +- Add group tag + +------------------------------------------------------------------- +Thu Sep 28 18:49:19 CEST 2000 - werner@suse.de + +- Move Magdir changes into misc dif +- Remove exectuable from text scripts + +------------------------------------------------------------------- +Fri Sep 15 19:17:54 CEST 2000 - werner@suse.de + +- Update to version 3.32 + +------------------------------------------------------------------- +Tue Jun 20 16:11:05 CEST 2000 - werner@suse.de + +- /usr/lib/magic -> /usr/share/misc/magic + +------------------------------------------------------------------- +Thu Feb 3 11:58:07 CET 2000 - schwab@suse.de + +- Ignore SHT_DYNSYM sections when deciding whether object is stripped. + +------------------------------------------------------------------- +Fri Jan 28 12:59:13 CET 2000 - schwab@suse.de + +- Fix int32 vs long problem. + +------------------------------------------------------------------- +Thu Jan 27 14:51:31 CET 2000 - schwab@suse.de + +- Fix non-ascii literal characters in string +- Specfile cleanup, get rid of Makefile.Linux +- /usr/man -> /usr/share/man + +------------------------------------------------------------------- +Thu Nov 25 17:49:30 CET 1999 - schwab@suse.de + +- Fix location of magic file. + +------------------------------------------------------------------- +Tue Nov 23 16:48:00 MET 1999 - kukuk@suse.de + +- Update to version 3.27 +- Add patches for SPARC + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Tue Aug 24 16:44:40 MEST 1999 - uli@suse.de + +- added -fsigned-char to CFLAGS (PPC) + +------------------------------------------------------------------- +Wed Nov 4 23:56:49 MET 1998 - ro@suse.de + +- disabled dcore (won't build with glibc-2.0) + +------------------------------------------------------------------- +Thu Oct 1 11:14:10 MEST 1998 - ro@suse.de + +- update to 3.26 +- hacked dcore.c to build with glibc-2.1 + +---------------------------------------------------------------------------- +Fri Oct 10 12:28:47 MEST 1997 - florian@suse.de + + +- add some more entries to magic + + +---------------------------------------------------------------------------- +Wed Jun 25 11:28:39 MEST 1997 - florian@suse.de + + +- add additional entries to recognize LaTeX files + + +---------------------------------------------------------------------------- +Tue May 27 20:03:59 MEST 1997 - florian@suse.de + + +- add some additional entries from mgetty/vgetty + +- add additional entries for CLISP and GNU gettext from Bruno Haible + + + +---------------------------------------------------------------------------- +Wed Jan 22 22:24:11 CET 1997 - florian@suse.de + + +- update to version 3.22 + + +---------------------------------------------------------------------------- +Tue Nov 26 20:15:03 CET 1996 - florian@suse.de + + +- recognise german umlauts as text: dirty hack, but also call "setlocale" + for correctly installed systems... + +- add "dcore"-program to show some information about core-files + + +---------------------------------------------------------------------------- +Sat Nov 2 17:35:11 CET 1996 - florian@suse.de + + +- update to version 3.21 + +- mv /etc/magic /usr/lib/magic (/etc/magic is still a symlink to new + location) + +---------------------------------------------------------------------------- +Tue Sep 3 00:33:45 MET DST 1996 - florian@suse.de + +- added missing entries for G3-fax (from mgetty source) + diff --git a/file.spec b/file.spec new file mode 100644 index 0000000..3fafcd7 --- /dev/null +++ b/file.spec @@ -0,0 +1,324 @@ +# +# spec file for package file (Version 4.18) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: file +URL: http://www.darwinsys.com/file/ +License: Other uncritical OpenSource License, Other License(s), see package +Group: Productivity/File utilities +Autoreqprov: on +Version: 4.18 +Release: 3 +Summary: A Tool to Determine File Types +Source: ftp://ftp.astron.com/pub/file/file-%{version}.tar.bz2 +Patch: file-%{version}.dif +Patch1: file-4.18-misc.dif +Patch2: file-4.12-pcp.dif +Patch3: file-4.06-exec.dif +Patch4: file-4.06-autoconf.dif +Patch5: file-4.03-tex.dif +Patch6: file-selinux.dif +Patch7: file-4.13-netware.diff +Patch8: file-4.13-cracklib.dif +Patch9: file-4.16-ssd.dif +Patch10: file-4.16-xen.dif +Patch11: file-4.18-elf.dif +Patch12: file-4.18-printf.dif +Patch20: file-4.16-mips.dif +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +With the file command, you can obtain information on the file type of a +specified file. File type recognition is controlled by the file +/etc/magic, which contains the classification criteria. This command is +used by apsfilter to permit automatic printing of different file types. + + + +Authors: +-------- + Mark Moraes + Christos Zoulas + +%package -n file-devel +Summary: Include Files and Libraries mandatory for Development +Group: Productivity/File utilities +Provides: file:/usr/include/magic.h +Requires: file = %{version}-%{release}, zlib-devel +Autoreqprov: on + +%description -n file-devel +This package contains all necessary include files and libraries needed +to develop applications that require the magic "file" interface. + + + +Authors: +-------- + Mark Moraes + Christos Zoulas + +%prep +%setup -q +%patch1 -p0 -b .misc +%patch2 -p0 -b .pcp +%patch3 -p0 -b .exec +%patch4 -p0 -b .conf +%patch5 -p0 -b .tex +%patch6 -p0 -b .policy +%patch7 -p0 -b .ntwr +%patch8 -p0 -b .crlib +%patch9 -p0 -b .pm +%patch10 -p0 -b .xen +%patch11 -p0 -b .elf.dif +%patch12 -p0 -b .printf +%ifarch mips +%patch20 -p0 -s .mips +%endif +%patch + +%build +export LANG=POSIX +export LC_ALL=POSIX +rm -f Magdir/*,v Magdir/*~ +rm -f ltcf-c.sh ltconfig ltmain.sh +libtoolize --automake +aclocal +automake +autoconf +CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -DHOWMANY=69632 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -fPIC" \ +./configure --prefix=/usr --datadir='${prefix}/share/misc' --mandir=%{_mandir} \ + -libdir=%{_libdir} --sysconfdir=/etc --enable-fsect-man5 +make pkgdatadir='$(datadir)' + +%install +export LANG=POSIX +export LC_ALL=POSIX +make DESTDIR=$RPM_BUILD_ROOT install pkgdatadir='$(datadir)' +mkdir -p $RPM_BUILD_ROOT/etc +rm -f $RPM_BUILD_ROOT/etc/magic +echo '# Localstuff: file(1) magic(5) for locally observed files' > $RPM_BUILD_ROOT/etc/magic +echo '# global magic file is /usr/share/misc/magic(.mgc)' >> $RPM_BUILD_ROOT/etc/magic +#install -s dcore $RPM_BUILD_ROOT/usr/bin/ +# Check the binary does not bail out: +LD_LIBRARY_PATH=${RPM_BUILD_ROOT}%{_libdir} \ +${RPM_BUILD_ROOT}/usr/bin/file -m ${RPM_BUILD_ROOT}/usr/share/misc/magic \ + ${RPM_BUILD_ROOT}/usr/bin/file /usr/bin/* /%{_lib}/* /usr/%{_lib}/* + +%clean +rm -rf $RPM_BUILD_ROOT +#%pre +#if test -L etc/magic; then +# rm -f etc/magic +#fi + +%files +%defattr (644,root,root,755) +%config(noreplace) /etc/magic +#/usr/bin/dcore +%attr(755,root,root) /usr/bin/file +%{_libdir}/lib*.so.* +/usr/share/misc/magic +/usr/share/misc/magic.mgc +/usr/share/misc/magic.mime +/usr/share/misc/magic.mime.mgc +%attr(644,root,root) %{_mandir}/man1/file.1.gz +%attr(644,root,root) %{_mandir}/man5/magic.5.gz + +%files -n file-devel +%defattr (644,root,root,755) +%{_libdir}/lib*.a +%{_libdir}/lib*.la +%{_libdir}/lib*.so +/usr/include/magic.h +%attr(644,root,root) %{_mandir}/man3/libmagic.3.gz + +%changelog -n file +* Thu Nov 23 2006 - werner@suse.de +- Initialize variable in elf patch +* Wed Nov 22 2006 - werner@suse.de +- Update to new file 4.18 + * Includes most of our extensions (elf, fifo, softmagic) +* Mon Jun 12 2006 - werner@suse.de +- Reenable file to display process name from a core dump (#183685) +* Mon Mar 27 2006 - werner@suse.de +- Add Mono/.Net identfiers to msdos magics (bug #159708) +* Fri Mar 24 2006 - werner@suse.de +- Update to file version 4.17 + * This version supports new key like `search' and `regex' + * Port our patches to this version +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Mon Jan 16 2006 - werner@suse.de +- Add Xen magics +* Tue Dec 06 2005 - werner@suse.de +- Add Structured Storage Entry for PageMaker to local (bug #134895) +* Thu Oct 20 2005 - werner@suse.de +- Update to file version 4.16 +* Tue Aug 23 2005 - werner@suse.de +- Fix broken cracklib magic (bug #106007) +* Mon Jul 25 2005 - werner@suse.de +- Update to new file 4.14 +- Split of the development version as own package +* Fri Jul 01 2005 - werner@suse.de +- Even for netware the columns in the magic entry are seperated + by tabs +- Add cracklib magics (bug #93673) +* Mon Jun 13 2005 - mmj@suse.de +- Add primitive magic for detecting netware loadable modules (NLMs) +- Don't remove buildroot before install +- Don't strip binaries explicitly +- %%doc is implied by %%man +* Thu Mar 17 2005 - werner@suse.de +- Be sure that the pipe/fifo patch works (bug #73644) +* Thu Mar 10 2005 - werner@suse.de +- Be able to use the -s option even on pipes (bug #71074) +- Do not hang on sockets or pipes not opened on the write side +* Fri Feb 18 2005 - werner@suse.de +- Update to file 4.13 for fixes in handling of bzip2 and DOS files +- Do not be fooled by minix filesystems magics on jpeg files +* Fri Nov 26 2004 - werner@suse.de +- Update to file 4.12, this may fix a security issue (bug #48576) +* Tue Sep 28 2004 - werner@suse.de +- Correct PCP entries (bug #46111) +* Thu Sep 16 2004 - werner@suse.de +- Read HOWMANY bytes even from a pipe (reported by max) +* Thu Aug 26 2004 - werner@suse.de +- Update to bugfix release 4.09 +* Tue Aug 24 2004 - lmuelle@suse.de +- Add -fPIC to the CFLAGS. +* Wed May 26 2004 - werner@suse.de +- Don't trap into string formats if integers are provided (#41209) +* Mon May 24 2004 - werner@suse.de +- Check for random data within ELF header (bug #40909) +* Thu Feb 12 2004 - werner@suse.de +- Add name offsets for CORE dumps even for 64bit ELF (bug #34461) +* Tue Jan 20 2004 - werner@suse.de +- Update to 4.07 +* Mon Dec 15 2003 - werner@suse.de +- Add workaround for new automake `feature' of ignoring man pages +- Ensure that the correct break condition is returned if readelf + past the end of the buffer (bug #33644). +* Mon Dec 08 2003 - werner@suse.de +- Update to 4.06 +- Use /etc/magic:/usr/share/misc/magic as magic and move /etc/magic + to a real configuration file for _local_ settings (bug #32725). +* Sat Oct 18 2003 - kukuk@suse.de +- Add patch to detect policy file for SE Linux +- Build as normal user +- Clean up build root +* Mon Sep 29 2003 - werner@suse.de +- Avoid endless loop due wrong alignment in old ELF binaries +* Tue Sep 16 2003 - werner@suse.de +- Extend buffer from 64kb upto 68kB to find ReiserFS (bug #30736) +* Wed Jul 02 2003 - werner@suse.de +- Use _libdir +* Tue Jul 01 2003 - werner@suse.de +- Update to file 4.03 +* Thu Apr 17 2003 - coolo@suse.de +- use BuildRoot +* Tue Mar 04 2003 - werner@suse.de +- Fix buffer overflow in elf detection +* Tue Dec 17 2002 - olh@suse.de +- use RPM_BUILD_ROOT, not BUILD_ROOT in testsuite +* Mon Nov 11 2002 - ro@suse.de +- fix deprecated multiline string literal (from longopt patch) +* Tue Sep 17 2002 - ro@suse.de +- removed bogus self-provides +* Tue Jul 23 2002 - werner@suse.de +- Add mySQL bytes to magic (bug #16138) +* Fri Jun 07 2002 - olh@suse.de +- don't change the union u in readelf.c:tryelf() on ppc64 +* Mon Feb 04 2002 - werner@suse.de +- Fix looking of manual page +* Mon Feb 04 2002 - werner@suse.de +- Add some magics for METAFONT format files +- Add inofficial long options for LSB +* Thu Dec 27 2001 - adrian@suse.de +- fix file output for mips binaries. The old output broke several + ltconfig scripts in other packages and was wrong anyway. +- recompress tar ball with bz2 +* Wed Dec 19 2001 - werner@suse.de +- update to version 3.37 +* Sat Jun 30 2001 - bk@suse.de +- update to version 3.33 +- don't change the union u in readelf.c:tryelf() on s390x. +- option i: fix one-byte memory underallocation - strcat adds '\0' +* Thu Jun 07 2001 - werner@suse.de +- Autoconf and Elf header: make it work again +* Fri May 04 2001 - werner@suse.de +- Make symlink /etc/magic a relative one +* Tue Jan 16 2001 - werner@suse.de +- Change order to find WAVE and TTF data before G3, apple and + macintosh data. +- Change string detection of PFM data to bit comparision masking + out the third bit to make raw G3 work. +* Sun Dec 03 2000 - schwab@suse.de +- Don't match against artificial null byte. +- Fix resource leaks. +* Tue Nov 28 2000 - aj@suse.de +- Add LFS support. +* Tue Nov 14 2000 - werner@suse.de +- Correct version handling of Linux/i386 Kernel setup header +* Mon Nov 13 2000 - werner@suse.de +- Fix handling of Microsoft Access Database in comparision + with Digifax-G3-File. +* Tue Oct 03 2000 - kukuk@suse.de +- fix inclusion of config.h +- Add group tag +* Thu Sep 28 2000 - werner@suse.de +- Move Magdir changes into misc dif +- Remove exectuable from text scripts +* Fri Sep 15 2000 - werner@suse.de +- Update to version 3.32 +* Tue Jun 20 2000 - werner@suse.de +- /usr/lib/magic -> /usr/share/misc/magic +* Thu Feb 03 2000 - schwab@suse.de +- Ignore SHT_DYNSYM sections when deciding whether object is stripped. +* Fri Jan 28 2000 - schwab@suse.de +- Fix int32 vs long problem. +* Thu Jan 27 2000 - schwab@suse.de +- Fix non-ascii literal characters in string +- Specfile cleanup, get rid of Makefile.Linux +- /usr/man -> /usr/share/man +* Thu Nov 25 1999 - schwab@suse.de +- Fix location of magic file. +* Tue Nov 23 1999 - kukuk@suse.de +- Update to version 3.27 +- Add patches for SPARC +* Mon Sep 13 1999 - bs@suse.de +- ran old prepare_spec on spec file to switch to new prepare_spec. +* Tue Aug 24 1999 - uli@suse.de +- added -fsigned-char to CFLAGS (PPC) +* Wed Nov 04 1998 - ro@suse.de +- disabled dcore (won't build with glibc-2.0) +* Thu Oct 01 1998 - ro@suse.de +- update to 3.26 +- hacked dcore.c to build with glibc-2.1 +* Fri Oct 10 1997 - florian@suse.de +- add some more entries to magic +* Wed Jun 25 1997 - florian@suse.de +- add additional entries to recognize LaTeX files +* Tue May 27 1997 - florian@suse.de +- add some additional entries from mgetty/vgetty +- add additional entries for CLISP and GNU gettext from Bruno Haible +* Wed Jan 22 1997 - florian@suse.de +- update to version 3.22 +* Thu Jan 02 1997 - florian@suse.de +- recognise german umlauts as text: dirty hack, but also call "setlocale" + for correctly installed systems... +- add "dcore"-program to show some information about core-files +* Thu Jan 02 1997 - florian@suse.de +- update to version 3.21 +- mv /etc/magic /usr/lib/magic (/etc/magic is still a symlink to new + location) +* Thu Jan 02 1997 - florian@suse.de +- added missing entries for G3-fax (from mgetty source) diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4