]> granicus.if.org Git - file/log
file
18 years agoFix the initialization bug in check_mem().
Anon Ymous [Tue, 16 Jan 2007 23:28:33 +0000 (23:28 +0000)]
Fix the initialization bug in check_mem().

18 years agoMake check_mem() initialize got_match even if we don't realloc the
Anon Ymous [Tue, 16 Jan 2007 23:24:31 +0000 (23:24 +0000)]
Make check_mem() initialize got_match even if we don't realloc the
array.

18 years agoMention a lot of changes including the new "default" type, "regex"
Anon Ymous [Tue, 16 Jan 2007 16:43:21 +0000 (16:43 +0000)]
Mention a lot of changes including the new "default" type, "regex"
fix, and C-style string escape fix.

18 years agomore files with gcc warning/lint fixes.
Anon Ymous [Tue, 16 Jan 2007 16:26:40 +0000 (16:26 +0000)]
more files with gcc warning/lint fixes.

18 years agoMention changes to src/file.c
Anon Ymous [Tue, 16 Jan 2007 16:22:56 +0000 (16:22 +0000)]
Mention changes to src/file.c

18 years agoThis is a first attempt to document the magic(5) grammar. Commit
Anon Ymous [Tue, 16 Jan 2007 15:04:09 +0000 (15:04 +0000)]
This is a first attempt to document the magic(5) grammar.  Commit
requested by christos@ so it doesn't get lost.

18 years ago1) Add a "default" type to print a message if nothing previously
Anon Ymous [Tue, 16 Jan 2007 14:58:48 +0000 (14:58 +0000)]
1) Add a "default" type to print a message if nothing previously
matched at that level or since the last default at that level.  This
is useful for setting up switch-like statements.  It can also be used
to do if/else constructions without a redundant second test.

2) Fix the "x" special case test so that one can test for that string
with "=x".

3) Allow "search" to search the entire buffer if the "/N" search count
is missing.

4) Make "regex" work!  It now starts its search at the specified
offset and takes an (optional) "/N" line count to specify the search
range; otherwise it searches to the end of the file.  The match is now
grabbed correctly for format strings and the offset set to the end of
the match.

5) Add a "/s" flag to "regex" and "search" to set the offset to the
start of the match.  By default the offset is set to the end of the
match, as it is with other tests.  This is mostly useful for "regex".

6) Make "search", "string" and "pstring" use the same file_strncmp()
routine so that they support the same flags; "bestring16" and
"lestring16" call the same routine, but with flags = 0.  Also add a
"/C" flag (in analogy to "/c") to ignore the case on uppercase
(lowercase) characters in the test string.

7) Strict adherence to C style string escapes.  A warnings are
printed when compiling.  Note: previously "\a" was incorrectly
translated to 'a' instead of an <alert> (i.e., BELL, typically 0x07).

8) Make this compile with "-Wall -Wextra" and all the warning flags
used with WARNS=4 in the NetBSD source.  Also make it pass lint.

9) Many "cleanups" and hopefully not too many new bugs!

18 years agoMake these files compile with gcc warnings on and also make them pass lint.
Anon Ymous [Tue, 16 Jan 2007 14:56:45 +0000 (14:56 +0000)]
Make these files compile with gcc warnings on and also make them pass lint.

18 years agoMake this compile with gcc warnings on and make it pass lint. Fix a
Anon Ymous [Tue, 16 Jan 2007 14:54:57 +0000 (14:54 +0000)]
Make this compile with gcc warnings on and make it pass lint.  Fix a
puts()/putc() usage error.

18 years agopatches from joerg jenderek
Christos Zoulas [Sun, 14 Jan 2007 18:48:41 +0000 (18:48 +0000)]
patches from joerg jenderek

18 years agoadd strndup and re-gen.
Christos Zoulas [Sat, 13 Jan 2007 19:14:13 +0000 (19:14 +0000)]
add strndup and re-gen.

18 years agothe idjit's guide to the gnu autoconf.
Christos Zoulas [Sat, 13 Jan 2007 19:13:54 +0000 (19:13 +0000)]
the idjit's guide to the gnu autoconf.

18 years agoadd this.
Christos Zoulas [Sat, 13 Jan 2007 19:08:27 +0000 (19:08 +0000)]
add this.

18 years agocheck for strndup.
Christos Zoulas [Sat, 13 Jan 2007 19:03:09 +0000 (19:03 +0000)]
check for strndup.

18 years agoUse File id.
Christos Zoulas [Fri, 12 Jan 2007 17:38:27 +0000 (17:38 +0000)]
Use File id.

18 years agoadd imelody
Christos Zoulas [Thu, 11 Jan 2007 15:11:59 +0000 (15:11 +0000)]
add imelody

18 years agofix option listing.
Christos Zoulas [Wed, 10 Jan 2007 23:00:16 +0000 (23:00 +0000)]
fix option listing.

18 years agofix typo
Christos Zoulas [Wed, 10 Jan 2007 22:56:49 +0000 (22:56 +0000)]
fix typo

18 years agomore mandoc fixes.
Christos Zoulas [Wed, 10 Jan 2007 22:54:21 +0000 (22:54 +0000)]
more mandoc fixes.

18 years agomore fixes.
Christos Zoulas [Wed, 10 Jan 2007 18:59:03 +0000 (18:59 +0000)]
more fixes.

18 years agoFix docs.
Christos Zoulas [Mon, 8 Jan 2007 17:09:30 +0000 (17:09 +0000)]
Fix docs.

18 years agouse the new roff macros. In progress.
Christos Zoulas [Mon, 8 Jan 2007 17:08:48 +0000 (17:08 +0000)]
use the new roff macros. In progress.

18 years agoPower5 and SPU From Gwenole Beauchesne <gbeauchesne@mandriva.com>
Christos Zoulas [Mon, 18 Dec 2006 14:14:34 +0000 (14:14 +0000)]
Power5 and SPU From Gwenole Beauchesne <gbeauchesne@mandriva.com>

18 years agomention new fixes. FILE4_19
Christos Zoulas [Tue, 12 Dec 2006 16:33:40 +0000 (16:33 +0000)]
mention new fixes.

18 years agowelcome to 4.19
Christos Zoulas [Mon, 11 Dec 2006 22:06:43 +0000 (22:06 +0000)]
welcome to 4.19

18 years agotime for 4.19
Christos Zoulas [Mon, 11 Dec 2006 21:49:58 +0000 (21:49 +0000)]
time for 4.19

18 years ago- fix byteswapping issue
Christos Zoulas [Mon, 11 Dec 2006 21:48:49 +0000 (21:48 +0000)]
- fix byteswapping issue
- report the number of bytes we tried to allocate when allocation fails
- add a few missed cases in the strength routine

18 years agomention bug fixes.
Christos Zoulas [Fri, 8 Dec 2006 20:37:10 +0000 (20:37 +0000)]
mention bug fixes.

18 years ago- store print the line number of the magic entry for debugging.
Christos Zoulas [Fri, 8 Dec 2006 20:31:07 +0000 (20:31 +0000)]
- store print the line number of the magic entry for debugging.
- if the magic entry did not print anything, don't treat it as a match
- change the magic strength algorithm to take into account the relationship op.

18 years agomagic fixes
Christos Zoulas [Sat, 25 Nov 2006 18:36:10 +0000 (18:36 +0000)]
magic fixes

18 years agofix broken magic entries.
Christos Zoulas [Sat, 25 Nov 2006 17:31:17 +0000 (17:31 +0000)]
fix broken magic entries.

18 years ago- keep the offset in a separate variable in the magic structure, instead
Christos Zoulas [Sat, 25 Nov 2006 17:28:54 +0000 (17:28 +0000)]
- keep the offset in a separate variable in the magic structure, instead
  of trashing the offset in the magic number.
- fix printing of the nul offset.

18 years agoadd tensilica extensa.
Christos Zoulas [Tue, 21 Nov 2006 18:00:13 +0000 (18:00 +0000)]
add tensilica extensa.

18 years agomore magic
Christos Zoulas [Fri, 17 Nov 2006 16:13:16 +0000 (16:13 +0000)]
more magic

18 years agoadd -0
Christos Zoulas [Fri, 17 Nov 2006 16:11:09 +0000 (16:11 +0000)]
add -0

18 years agomore fixed.
Christos Zoulas [Fri, 17 Nov 2006 16:10:52 +0000 (16:10 +0000)]
more fixed.

18 years agomore magic fixes
Christos Zoulas [Fri, 17 Nov 2006 16:09:54 +0000 (16:09 +0000)]
more magic fixes

18 years agoadd another code for DGN
Christos Zoulas [Thu, 16 Nov 2006 15:10:59 +0000 (15:10 +0000)]
add another code for DGN

18 years agoerrno is in section 2; from peter avalos.
Christos Zoulas [Wed, 15 Nov 2006 23:02:09 +0000 (23:02 +0000)]
errno is in section 2; from peter avalos.

18 years agoremove bogus ifdef.
Christos Zoulas [Wed, 15 Nov 2006 15:53:23 +0000 (15:53 +0000)]
remove bogus ifdef.

18 years agoInclude sparcv9 to the list of machines where we use uint32_t for the
Christos Zoulas [Tue, 7 Nov 2006 19:47:22 +0000 (19:47 +0000)]
Include sparcv9 to the list of machines where we use uint32_t for the
header. This should be __LP64__ or just eliminate the long part of the
struct? From Alex Deiter

18 years agocast to quad types to long long, so that we don't have to use the ugly PRI
Christos Zoulas [Wed, 1 Nov 2006 20:16:43 +0000 (20:16 +0000)]
cast to quad types to long long, so that we don't have to use the ugly PRI
macros which might not exist on all machines.

18 years agofixes from NetBSD magics
Christos Zoulas [Wed, 1 Nov 2006 20:05:45 +0000 (20:05 +0000)]
fixes from NetBSD magics

18 years agoadd winzip self-extracting FILE4_18
Christos Zoulas [Tue, 31 Oct 2006 21:23:56 +0000 (21:23 +0000)]
add winzip self-extracting

18 years agobump
Christos Zoulas [Tue, 31 Oct 2006 21:18:09 +0000 (21:18 +0000)]
bump

18 years agorestructure again.
Christos Zoulas [Tue, 31 Oct 2006 20:57:45 +0000 (20:57 +0000)]
restructure again.

18 years agore-arrange so that it fits in 64 bit machines.
Christos Zoulas [Tue, 31 Oct 2006 20:46:23 +0000 (20:46 +0000)]
re-arrange so that it fits in 64 bit machines.
bump version.

18 years agoregen
Christos Zoulas [Tue, 31 Oct 2006 20:14:33 +0000 (20:14 +0000)]
regen

18 years ago4.18
Christos Zoulas [Tue, 31 Oct 2006 19:48:33 +0000 (19:48 +0000)]
4.18

18 years ago- quad dates
Christos Zoulas [Tue, 31 Oct 2006 19:37:15 +0000 (19:37 +0000)]
- quad dates
- merge a lot of code
- regen autoconf

18 years agoadd a truncation warning and fix some size_t/int confusiog.
Christos Zoulas [Fri, 27 Oct 2006 14:57:32 +0000 (14:57 +0000)]
add a truncation warning and fix some size_t/int confusiog.

18 years agofix possible unterminated string.
Christos Zoulas [Fri, 27 Oct 2006 14:51:27 +0000 (14:51 +0000)]
fix possible unterminated string.

18 years agoole 2 compound documents redo from Lester Hightower.
Christos Zoulas [Mon, 23 Oct 2006 14:59:53 +0000 (14:59 +0000)]
ole 2 compound documents redo from Lester Hightower.

18 years agomention a few new things.
Christos Zoulas [Sun, 22 Oct 2006 22:55:43 +0000 (22:55 +0000)]
mention a few new things.

18 years agodon't process notes multiple times.
Christos Zoulas [Sun, 22 Oct 2006 22:54:09 +0000 (22:54 +0000)]
don't process notes multiple times.

18 years agoinitialize the buffers.
Christos Zoulas [Fri, 20 Oct 2006 21:04:15 +0000 (21:04 +0000)]
initialize the buffers.

18 years agoallow child to return 0 bytes.
Christos Zoulas [Fri, 20 Oct 2006 21:03:40 +0000 (21:03 +0000)]
allow child to return 0 bytes.

18 years agocomment out bogus magic
Christos Zoulas [Fri, 20 Oct 2006 15:56:12 +0000 (15:56 +0000)]
comment out bogus magic

18 years agouse .Pq from wiz.
Christos Zoulas [Thu, 19 Oct 2006 21:04:57 +0000 (21:04 +0000)]
use .Pq from wiz.

18 years agomore magic
Christos Zoulas [Tue, 12 Sep 2006 20:17:02 +0000 (20:17 +0000)]
more magic

18 years agoalways print executable.
Christos Zoulas [Tue, 13 Jun 2006 22:17:49 +0000 (22:17 +0000)]
always print executable.

18 years agokill bogus entries.
Christos Zoulas [Thu, 8 Jun 2006 22:59:57 +0000 (22:59 +0000)]
kill bogus entries.

18 years agomore quad format fixes.
Christos Zoulas [Thu, 8 Jun 2006 22:48:51 +0000 (22:48 +0000)]
more quad format fixes.

18 years agofix quad formatting. XXX Add test for it.
Christos Zoulas [Thu, 8 Jun 2006 22:25:47 +0000 (22:25 +0000)]
fix quad formatting. XXX Add test for it.

18 years agothings I did recently.
Christos Zoulas [Thu, 8 Jun 2006 22:25:07 +0000 (22:25 +0000)]
things I did recently.

18 years agoupdate for quad.
Christos Zoulas [Thu, 8 Jun 2006 22:24:44 +0000 (22:24 +0000)]
update for quad.

18 years agomagic changes, update the magic list.
Christos Zoulas [Thu, 8 Jun 2006 22:21:40 +0000 (22:21 +0000)]
magic changes, update the magic list.

18 years agoadd more format checks.
Christos Zoulas [Thu, 8 Jun 2006 22:10:28 +0000 (22:10 +0000)]
add more format checks.

18 years agochange u_int to uint32_t
Christos Zoulas [Thu, 8 Jun 2006 21:51:12 +0000 (21:51 +0000)]
change u_int to uint32_t

18 years agorename mcheck to magiccheck for qnx
Christos Zoulas [Thu, 8 Jun 2006 21:50:04 +0000 (21:50 +0000)]
rename mcheck to magiccheck for qnx

18 years agofinish quad support.
Christos Zoulas [Thu, 8 Jun 2006 20:53:51 +0000 (20:53 +0000)]
finish quad support.

18 years agolinux changes from suse
Christos Zoulas [Thu, 8 Jun 2006 20:53:31 +0000 (20:53 +0000)]
linux changes from suse

18 years agoformat checks, some quad support.
Christos Zoulas [Thu, 8 Jun 2006 20:52:50 +0000 (20:52 +0000)]
format checks, some quad support.

18 years agoFIFO handling.
Christos Zoulas [Thu, 8 Jun 2006 20:52:08 +0000 (20:52 +0000)]
FIFO handling.

18 years agocomments-only
Ian Darwin [Fri, 2 Jun 2006 17:51:43 +0000 (17:51 +0000)]
comments-only

18 years agoAdd missing 'r' flag in USAGE, and one comment
Ian Darwin [Fri, 2 Jun 2006 00:07:58 +0000 (00:07 +0000)]
Add missing 'r' flag in USAGE, and one comment

18 years agocomments-only change
Ian Darwin [Thu, 1 Jun 2006 21:37:07 +0000 (21:37 +0000)]
comments-only change

18 years agocomments-only
Ian Darwin [Thu, 1 Jun 2006 18:52:18 +0000 (18:52 +0000)]
comments-only

18 years agoclarify comment
Ian Darwin [Thu, 1 Jun 2006 18:51:08 +0000 (18:51 +0000)]
clarify comment

18 years agoCentralized java and mach-o common; leave non-shared in each
Ian Darwin [Thu, 1 Jun 2006 18:49:35 +0000 (18:49 +0000)]
Centralized java and mach-o common; leave non-shared in each

18 years agoAdd code outline, ok Christos
Ian Darwin [Thu, 1 Jun 2006 18:19:41 +0000 (18:19 +0000)]
Add code outline, ok Christos

18 years agospelling cleanups.
Christos Zoulas [Wed, 3 May 2006 19:20:25 +0000 (19:20 +0000)]
spelling cleanups.

18 years agoBring things closer to today's reality.
Christos Zoulas [Wed, 3 May 2006 18:48:33 +0000 (18:48 +0000)]
Bring things closer to today's reality.

18 years agoMention suse fixes
Christos Zoulas [Wed, 3 May 2006 15:51:51 +0000 (15:51 +0000)]
Mention suse fixes

18 years agouse constants and be more tolerant of seek errors. From suse
Christos Zoulas [Wed, 3 May 2006 15:50:23 +0000 (15:50 +0000)]
use constants and be more tolerant of seek errors. From suse

18 years agolater updates.
Christos Zoulas [Wed, 3 May 2006 15:19:53 +0000 (15:19 +0000)]
later updates.

18 years agoIdentify gnu tar vs. posix tar.
Christos Zoulas [Wed, 3 May 2006 15:19:25 +0000 (15:19 +0000)]
Identify gnu tar vs. posix tar.

18 years agoWe only need separators if we actually printed something.
Christos Zoulas [Wed, 3 May 2006 15:18:30 +0000 (15:18 +0000)]
We only need separators if we actually printed something.

18 years agoReduce the strength of regex strings.
Christos Zoulas [Sun, 9 Apr 2006 16:41:39 +0000 (16:41 +0000)]
Reduce the strength of regex strings.

18 years agoConditionally include wctype.h
Christos Zoulas [Sun, 9 Apr 2006 16:41:03 +0000 (16:41 +0000)]
Conditionally include wctype.h

18 years agoRFC1421 & Java JKS certificate files
Ian Darwin [Sat, 25 Mar 2006 15:52:22 +0000 (15:52 +0000)]
RFC1421 & Java JKS certificate files

18 years agoRemove dead code.
Christos Zoulas [Sat, 18 Mar 2006 04:44:58 +0000 (04:44 +0000)]
Remove dead code.

18 years agouse calloc to allocate the magic_entries array since we depend on the
Christos Zoulas [Tue, 14 Mar 2006 01:04:31 +0000 (01:04 +0000)]
use calloc to allocate the magic_entries array since we depend on the
contents being 0.

18 years agoregen FILE4_17
Christos Zoulas [Sun, 12 Mar 2006 22:11:40 +0000 (22:11 +0000)]
regen

18 years agoReport empty when null/0 is passed in magic_buffer. (Mike Frysinger)
Christos Zoulas [Sun, 12 Mar 2006 22:09:33 +0000 (22:09 +0000)]
Report empty when null/0 is passed in magic_buffer. (Mike Frysinger)

18 years agoput chi in wordprocessors, more iff magic
Christos Zoulas [Tue, 7 Mar 2006 19:16:50 +0000 (19:16 +0000)]
put chi in wordprocessors, more iff magic

18 years agowelcome to 4.17
Christos Zoulas [Thu, 2 Mar 2006 22:15:12 +0000 (22:15 +0000)]
welcome to 4.17

18 years agofix broken magic
Christos Zoulas [Thu, 2 Mar 2006 22:14:23 +0000 (22:14 +0000)]
fix broken magic

18 years agonew magic autoreconf
Christos Zoulas [Thu, 2 Mar 2006 22:10:24 +0000 (22:10 +0000)]
new magic autoreconf

18 years agoAdd experimental magic sorting.
Christos Zoulas [Thu, 2 Mar 2006 22:08:57 +0000 (22:08 +0000)]
Add experimental magic sorting.