]>
granicus.if.org Git - file/log
Anon Ymous [Tue, 16 Jan 2007 16:26:40 +0000 (16:26 +0000)]
more files with gcc warning/lint fixes.
Anon Ymous [Tue, 16 Jan 2007 16:22:56 +0000 (16:22 +0000)]
Mention changes to src/file.c
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.
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!
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.
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.
Christos Zoulas [Sun, 14 Jan 2007 18:48:41 +0000 (18:48 +0000)]
patches from joerg jenderek
Christos Zoulas [Sat, 13 Jan 2007 19:14:13 +0000 (19:14 +0000)]
add strndup and re-gen.
Christos Zoulas [Sat, 13 Jan 2007 19:13:54 +0000 (19:13 +0000)]
the idjit's guide to the gnu autoconf.
Christos Zoulas [Sat, 13 Jan 2007 19:08:27 +0000 (19:08 +0000)]
add this.
Christos Zoulas [Sat, 13 Jan 2007 19:03:09 +0000 (19:03 +0000)]
check for strndup.
Christos Zoulas [Fri, 12 Jan 2007 17:38:27 +0000 (17:38 +0000)]
Use File id.
Christos Zoulas [Thu, 11 Jan 2007 15:11:59 +0000 (15:11 +0000)]
add imelody
Christos Zoulas [Wed, 10 Jan 2007 23:00:16 +0000 (23:00 +0000)]
fix option listing.
Christos Zoulas [Wed, 10 Jan 2007 22:56:49 +0000 (22:56 +0000)]
fix typo
Christos Zoulas [Wed, 10 Jan 2007 22:54:21 +0000 (22:54 +0000)]
more mandoc fixes.
Christos Zoulas [Wed, 10 Jan 2007 18:59:03 +0000 (18:59 +0000)]
more fixes.
Christos Zoulas [Mon, 8 Jan 2007 17:09:30 +0000 (17:09 +0000)]
Fix docs.
Christos Zoulas [Mon, 8 Jan 2007 17:08:48 +0000 (17:08 +0000)]
use the new roff macros. In progress.
Christos Zoulas [Mon, 18 Dec 2006 14:14:34 +0000 (14:14 +0000)]
Power5 and SPU From Gwenole Beauchesne <gbeauchesne@mandriva.com>
Christos Zoulas [Tue, 12 Dec 2006 16:33:40 +0000 (16:33 +0000)]
mention new fixes.
Christos Zoulas [Mon, 11 Dec 2006 22:06:43 +0000 (22:06 +0000)]
welcome to 4.19
Christos Zoulas [Mon, 11 Dec 2006 21:49:58 +0000 (21:49 +0000)]
time for 4.19
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
Christos Zoulas [Fri, 8 Dec 2006 20:37:10 +0000 (20:37 +0000)]
mention bug fixes.
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.
Christos Zoulas [Sat, 25 Nov 2006 18:36:10 +0000 (18:36 +0000)]
magic fixes
Christos Zoulas [Sat, 25 Nov 2006 17:31:17 +0000 (17:31 +0000)]
fix broken magic entries.
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.
Christos Zoulas [Tue, 21 Nov 2006 18:00:13 +0000 (18:00 +0000)]
add tensilica extensa.
Christos Zoulas [Fri, 17 Nov 2006 16:13:16 +0000 (16:13 +0000)]
more magic
Christos Zoulas [Fri, 17 Nov 2006 16:11:09 +0000 (16:11 +0000)]
add -0
Christos Zoulas [Fri, 17 Nov 2006 16:10:52 +0000 (16:10 +0000)]
more fixed.
Christos Zoulas [Fri, 17 Nov 2006 16:09:54 +0000 (16:09 +0000)]
more magic fixes
Christos Zoulas [Thu, 16 Nov 2006 15:10:59 +0000 (15:10 +0000)]
add another code for DGN
Christos Zoulas [Wed, 15 Nov 2006 23:02:09 +0000 (23:02 +0000)]
errno is in section 2; from peter avalos.
Christos Zoulas [Wed, 15 Nov 2006 15:53:23 +0000 (15:53 +0000)]
remove bogus ifdef.
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
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.
Christos Zoulas [Wed, 1 Nov 2006 20:05:45 +0000 (20:05 +0000)]
fixes from NetBSD magics
Christos Zoulas [Tue, 31 Oct 2006 21:23:56 +0000 (21:23 +0000)]
add winzip self-extracting
Christos Zoulas [Tue, 31 Oct 2006 21:18:09 +0000 (21:18 +0000)]
bump
Christos Zoulas [Tue, 31 Oct 2006 20:57:45 +0000 (20:57 +0000)]
restructure again.
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.
Christos Zoulas [Tue, 31 Oct 2006 20:14:33 +0000 (20:14 +0000)]
regen
Christos Zoulas [Tue, 31 Oct 2006 19:48:33 +0000 (19:48 +0000)]
4.18
Christos Zoulas [Tue, 31 Oct 2006 19:37:15 +0000 (19:37 +0000)]
- quad dates
- merge a lot of code
- regen autoconf
Christos Zoulas [Fri, 27 Oct 2006 14:57:32 +0000 (14:57 +0000)]
add a truncation warning and fix some size_t/int confusiog.
Christos Zoulas [Fri, 27 Oct 2006 14:51:27 +0000 (14:51 +0000)]
fix possible unterminated string.
Christos Zoulas [Mon, 23 Oct 2006 14:59:53 +0000 (14:59 +0000)]
ole 2 compound documents redo from Lester Hightower.
Christos Zoulas [Sun, 22 Oct 2006 22:55:43 +0000 (22:55 +0000)]
mention a few new things.
Christos Zoulas [Sun, 22 Oct 2006 22:54:09 +0000 (22:54 +0000)]
don't process notes multiple times.
Christos Zoulas [Fri, 20 Oct 2006 21:04:15 +0000 (21:04 +0000)]
initialize the buffers.
Christos Zoulas [Fri, 20 Oct 2006 21:03:40 +0000 (21:03 +0000)]
allow child to return 0 bytes.
Christos Zoulas [Fri, 20 Oct 2006 15:56:12 +0000 (15:56 +0000)]
comment out bogus magic
Christos Zoulas [Thu, 19 Oct 2006 21:04:57 +0000 (21:04 +0000)]
use .Pq from wiz.
Christos Zoulas [Tue, 12 Sep 2006 20:17:02 +0000 (20:17 +0000)]
more magic
Christos Zoulas [Tue, 13 Jun 2006 22:17:49 +0000 (22:17 +0000)]
always print executable.
Christos Zoulas [Thu, 8 Jun 2006 22:59:57 +0000 (22:59 +0000)]
kill bogus entries.
Christos Zoulas [Thu, 8 Jun 2006 22:48:51 +0000 (22:48 +0000)]
more quad format fixes.
Christos Zoulas [Thu, 8 Jun 2006 22:25:47 +0000 (22:25 +0000)]
fix quad formatting. XXX Add test for it.
Christos Zoulas [Thu, 8 Jun 2006 22:25:07 +0000 (22:25 +0000)]
things I did recently.
Christos Zoulas [Thu, 8 Jun 2006 22:24:44 +0000 (22:24 +0000)]
update for quad.
Christos Zoulas [Thu, 8 Jun 2006 22:21:40 +0000 (22:21 +0000)]
magic changes, update the magic list.
Christos Zoulas [Thu, 8 Jun 2006 22:10:28 +0000 (22:10 +0000)]
add more format checks.
Christos Zoulas [Thu, 8 Jun 2006 21:51:12 +0000 (21:51 +0000)]
change u_int to uint32_t
Christos Zoulas [Thu, 8 Jun 2006 21:50:04 +0000 (21:50 +0000)]
rename mcheck to magiccheck for qnx
Christos Zoulas [Thu, 8 Jun 2006 20:53:51 +0000 (20:53 +0000)]
finish quad support.
Christos Zoulas [Thu, 8 Jun 2006 20:53:31 +0000 (20:53 +0000)]
linux changes from suse
Christos Zoulas [Thu, 8 Jun 2006 20:52:50 +0000 (20:52 +0000)]
format checks, some quad support.
Christos Zoulas [Thu, 8 Jun 2006 20:52:08 +0000 (20:52 +0000)]
FIFO handling.
Ian Darwin [Fri, 2 Jun 2006 17:51:43 +0000 (17:51 +0000)]
comments-only
Ian Darwin [Fri, 2 Jun 2006 00:07:58 +0000 (00:07 +0000)]
Add missing 'r' flag in USAGE, and one comment
Ian Darwin [Thu, 1 Jun 2006 21:37:07 +0000 (21:37 +0000)]
comments-only change
Ian Darwin [Thu, 1 Jun 2006 18:52:18 +0000 (18:52 +0000)]
comments-only
Ian Darwin [Thu, 1 Jun 2006 18:51:08 +0000 (18:51 +0000)]
clarify comment
Ian Darwin [Thu, 1 Jun 2006 18:49:35 +0000 (18:49 +0000)]
Centralized java and mach-o common; leave non-shared in each
Ian Darwin [Thu, 1 Jun 2006 18:19:41 +0000 (18:19 +0000)]
Add code outline, ok Christos
Christos Zoulas [Wed, 3 May 2006 19:20:25 +0000 (19:20 +0000)]
spelling cleanups.
Christos Zoulas [Wed, 3 May 2006 18:48:33 +0000 (18:48 +0000)]
Bring things closer to today's reality.
Christos Zoulas [Wed, 3 May 2006 15:51:51 +0000 (15:51 +0000)]
Mention suse fixes
Christos Zoulas [Wed, 3 May 2006 15:50:23 +0000 (15:50 +0000)]
use constants and be more tolerant of seek errors. From suse
Christos Zoulas [Wed, 3 May 2006 15:19:53 +0000 (15:19 +0000)]
later updates.
Christos Zoulas [Wed, 3 May 2006 15:19:25 +0000 (15:19 +0000)]
Identify gnu tar vs. posix tar.
Christos Zoulas [Wed, 3 May 2006 15:18:30 +0000 (15:18 +0000)]
We only need separators if we actually printed something.
Christos Zoulas [Sun, 9 Apr 2006 16:41:39 +0000 (16:41 +0000)]
Reduce the strength of regex strings.
Christos Zoulas [Sun, 9 Apr 2006 16:41:03 +0000 (16:41 +0000)]
Conditionally include wctype.h
Ian Darwin [Sat, 25 Mar 2006 15:52:22 +0000 (15:52 +0000)]
RFC1421 & Java JKS certificate files
Christos Zoulas [Sat, 18 Mar 2006 04:44:58 +0000 (04:44 +0000)]
Remove dead code.
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.
Christos Zoulas [Sun, 12 Mar 2006 22:11:40 +0000 (22:11 +0000)]
regen
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)
Christos Zoulas [Tue, 7 Mar 2006 19:16:50 +0000 (19:16 +0000)]
put chi in wordprocessors, more iff magic
Christos Zoulas [Thu, 2 Mar 2006 22:15:12 +0000 (22:15 +0000)]
welcome to 4.17
Christos Zoulas [Thu, 2 Mar 2006 22:14:23 +0000 (22:14 +0000)]
fix broken magic
Christos Zoulas [Thu, 2 Mar 2006 22:10:24 +0000 (22:10 +0000)]
new magic autoreconf
Christos Zoulas [Thu, 2 Mar 2006 22:08:57 +0000 (22:08 +0000)]
Add experimental magic sorting.
Christos Zoulas [Thu, 2 Mar 2006 22:08:22 +0000 (22:08 +0000)]
Stop early if the string is not long enough.
Christos Zoulas [Thu, 2 Mar 2006 22:07:53 +0000 (22:07 +0000)]
print some of the new formats
Christos Zoulas [Sat, 25 Feb 2006 16:54:04 +0000 (16:54 +0000)]
fix spelling; from thomas klaussner.