Christos Zoulas [Sat, 20 May 1995 22:09:21 +0000 (22:09 +0000)]
Passed incorrect argument to eatsize().
Use %ld and %lx where appropriate.
Remove unused variables
ELF support for both big and little endian
Fixes for small files again.
Christos Zoulas [Fri, 28 Apr 1995 19:13:08 +0000 (19:13 +0000)]
*** empty log message ***
Christos Zoulas [Fri, 28 Apr 1995 17:29:13 +0000 (17:29 +0000)]
- Incorrect nroff detection fix from der Mouse
- Lost and incorrect magic entries.
- Added ELF stripped binary detection [in C; ugh]
- Look for $MAGIC to find the magic file.
- Eat trailing size specifications from numbers i.e. ignore 10L
- More fixes for very short files
Christos Zoulas [Fri, 28 Apr 1995 17:28:38 +0000 (17:28 +0000)]
*** empty log message ***
Christos Zoulas [Mon, 17 Apr 1995 15:37:24 +0000 (15:37 +0000)]
*** empty log message ***
Christos Zoulas [Sat, 25 Mar 1995 22:23:01 +0000 (22:23 +0000)]
*** empty log message ***
Christos Zoulas [Sat, 25 Mar 1995 22:06:45 +0000 (22:06 +0000)]
- use strtoul() where it exists.
- fix sign-extend bug
- try to detect tar archives before nroff files, otherwise
tar files where the first file starts with a . will not work
Christos Zoulas [Sat, 25 Mar 1995 22:04:56 +0000 (22:04 +0000)]
3.16
Christos Zoulas [Wed, 22 Mar 1995 19:16:18 +0000 (19:16 +0000)]
z
Christos Zoulas [Sat, 21 Jan 1995 21:14:25 +0000 (21:14 +0000)]
*** empty log message ***
Christos Zoulas [Sat, 21 Jan 1995 21:10:47 +0000 (21:10 +0000)]
bump version
Christos Zoulas [Sat, 21 Jan 1995 21:09:00 +0000 (21:09 +0000)]
3.15
Christos Zoulas [Sat, 21 Jan 1995 21:03:35 +0000 (21:03 +0000)]
Added CSECTION for the file man page
Added version flag -v
Fixed bug with -f input flag (from iorio@violet.berkeley.edu)
Lots of magic fixes and reorganization...
Christos Zoulas [Fri, 9 Dec 1994 00:00:52 +0000 (00:00 +0000)]
*** empty log message ***
Christos Zoulas [Tue, 18 Oct 1994 17:49:04 +0000 (17:49 +0000)]
Initial revision
Christos Zoulas [Tue, 18 Oct 1994 17:49:04 +0000 (17:49 +0000)]
*** empty log message ***
Christos Zoulas [Mon, 17 Oct 1994 01:22:38 +0000 (01:22 +0000)]
Initial revision
Christos Zoulas [Mon, 6 Jun 1994 05:27:29 +0000 (05:27 +0000)]
more unsigned fixes.
Christos Zoulas [Mon, 6 Jun 1994 05:24:23 +0000 (05:24 +0000)]
from netbsd distribution
Christos Zoulas [Mon, 6 Jun 1994 05:24:23 +0000 (05:24 +0000)]
Fixes From: <u31b3hs@pool.informatik.rwth-aachen.de> (Michael Haardt)
Christos Zoulas [Tue, 3 May 1994 17:58:23 +0000 (17:58 +0000)]
changes from mycroft@gnu.ai.mit.edu (Charles Hannum) for unsigned
Christos Zoulas [Tue, 3 May 1994 17:57:59 +0000 (17:57 +0000)]
*** empty log message ***
Christos Zoulas [Fri, 21 Jan 1994 01:38:24 +0000 (01:38 +0000)]
*** empty log message ***
Christos Zoulas [Fri, 21 Jan 1994 01:28:18 +0000 (01:28 +0000)]
*** empty log message ***
Christos Zoulas [Fri, 21 Jan 1994 01:27:01 +0000 (01:27 +0000)]
Fixed null termination bug from Don Seeley at BSDI in ascmagic.c
Christos Zoulas [Fri, 21 Jan 1994 01:25:30 +0000 (01:25 +0000)]
Bug fix from Don Seeley at BSDI. make sure that the string is
null terminated before calling strtok.
Christos Zoulas [Sun, 7 Nov 1993 03:50:05 +0000 (03:50 +0000)]
*** empty log message ***
Christos Zoulas [Wed, 27 Oct 1993 21:00:54 +0000 (21:00 +0000)]
*** empty log message ***
Christos Zoulas [Wed, 27 Oct 1993 20:59:05 +0000 (20:59 +0000)]
Changed -z flag to understand gzip format too.
Moved builtin compression detection to a table, and move
the compress magic entry out of the source.
Made printing of numbers unsigned, and added the mask to it.
Changed the buffer size to 8k, because gzip will refuse to
unzip just a few bytes.
Christos Zoulas [Mon, 11 Oct 1993 20:46:51 +0000 (20:46 +0000)]
*** empty log message ***
Christos Zoulas [Fri, 24 Sep 1993 18:51:03 +0000 (18:51 +0000)]
fixed man pages stuff.
Christos Zoulas [Fri, 24 Sep 1993 18:50:48 +0000 (18:50 +0000)]
changed the address to send magic entries
Christos Zoulas [Fri, 24 Sep 1993 18:49:06 +0000 (18:49 +0000)]
Fixed small bug in softmagic.c introduced by
copying the data to be examined out of the input
buffer. Changed the Makefile to use sed to create
the correct man pages.
Christos Zoulas [Fri, 24 Sep 1993 18:47:48 +0000 (18:47 +0000)]
*** empty log message ***
Christos Zoulas [Thu, 23 Sep 1993 21:56:23 +0000 (21:56 +0000)]
Passed purify. Fixed indirections. Fixed byte order printing.
Fixed segmentation faults caused by referencing past the end
of the magic buffer. Fixed bus errors caused by referencing
unaligned shorts or longs.
Christos Zoulas [Thu, 23 Sep 1993 21:55:36 +0000 (21:55 +0000)]
Changed tar{,get}
Christos Zoulas [Thu, 23 Sep 1993 21:48:43 +0000 (21:48 +0000)]
Initial revision
Christos Zoulas [Thu, 23 Sep 1993 21:47:01 +0000 (21:47 +0000)]
*** empty log message ***
Christos Zoulas [Thu, 23 Sep 1993 20:26:40 +0000 (20:26 +0000)]
major overhaul
Christos Zoulas [Thu, 23 Sep 1993 20:26:25 +0000 (20:26 +0000)]
*** empty log message ***
Christos Zoulas [Thu, 23 Sep 1993 20:19:42 +0000 (20:19 +0000)]
Fixed small parsing bug in apprentice.c
Christos Zoulas [Thu, 23 Sep 1993 18:31:14 +0000 (18:31 +0000)]
more alignment error fixes
Christos Zoulas [Thu, 23 Sep 1993 18:24:45 +0000 (18:24 +0000)]
changed assignment to short and long to a memcpy to avoid alignment
bus errors
Christos Zoulas [Thu, 23 Sep 1993 17:59:51 +0000 (17:59 +0000)]
added the word 'text' to the awk scripts.
Christos Zoulas [Thu, 23 Sep 1993 17:59:17 +0000 (17:59 +0000)]
added entry for pc broken postscript files that start with ^D
Christos Zoulas [Thu, 23 Sep 1993 17:58:57 +0000 (17:58 +0000)]
removed gzip entry. There is a gzip file now
Christos Zoulas [Thu, 23 Sep 1993 17:53:34 +0000 (17:53 +0000)]
added core formats
Christos Zoulas [Thu, 16 Sep 1993 21:15:59 +0000 (21:15 +0000)]
Added printing for dates, and fixed the output format.
Christos Zoulas [Thu, 16 Sep 1993 21:14:20 +0000 (21:14 +0000)]
Fixed last NULL entry to avoid gcc warnings.
Christos Zoulas [Thu, 16 Sep 1993 21:12:08 +0000 (21:12 +0000)]
Added more debugging information, and made existing
debugging printing to go to stderr. Added limit counts
to all functions to avoid spurious core-dumps.
Christos Zoulas [Thu, 16 Sep 1993 21:09:35 +0000 (21:09 +0000)]
Is_tar now takes the length in bytes of the buffer to be
tested.
Christos Zoulas [Thu, 16 Sep 1993 21:08:06 +0000 (21:08 +0000)]
Fixed prototypes.
Christos Zoulas [Thu, 16 Sep 1993 21:06:33 +0000 (21:06 +0000)]
fixed references to unitialized memory.
Christos Zoulas [Thu, 16 Sep 1993 20:49:29 +0000 (20:49 +0000)]
Use calloc() to allocate magic entries to avoid unitialized
memory spurious errors. Change showstr to print to a file
and the ability to print both counted and null terminated strings
Christos Zoulas [Thu, 16 Sep 1993 20:45:46 +0000 (20:45 +0000)]
off by one in nbytes
Ian Darwin [Thu, 15 Apr 1993 17:26:53 +0000 (17:26 +0000)]
Use $(MAKE), not hardcoded "make", for sub-makes.
Ian Darwin [Mon, 5 Apr 1993 10:39:30 +0000 (10:39 +0000)]
Add rcsdiff; remove dummy "new" (no longer needed) target.
Ian Darwin [Mon, 5 Apr 1993 10:38:26 +0000 (10:38 +0000)]
Formatting and update.
Ian Darwin [Mon, 5 Apr 1993 10:37:16 +0000 (10:37 +0000)]
Add localsrc/*.c to ALLSRCS so it gets into dist.
Ian Darwin [Mon, 5 Apr 1993 10:27:30 +0000 (10:27 +0000)]
replace TARGETS MANIFEST Makefile
Ian Darwin [Mon, 5 Apr 1993 10:18:56 +0000 (10:18 +0000)]
Refer the reader to patchlevel.h; mention Guy Harris' changes for 3.8.
Ian Darwin [Mon, 5 Apr 1993 10:11:04 +0000 (10:11 +0000)]
Initial revision
Ian Darwin [Wed, 24 Mar 1993 17:34:34 +0000 (17:34 +0000)]
|From: Mark Moraes <Mark-Moraes@deshaw.com>
|Christos & I confabulated on a smaller, neater change to replace the last
|one.
Ian Darwin [Wed, 24 Mar 1993 14:23:40 +0000 (14:23 +0000)]
Batch of minor changes from several contributors.
Ian Darwin [Wed, 24 Mar 1993 14:22:56 +0000 (14:22 +0000)]
Add braces to eliminate warning from "gcc -Wall" about partly-braced inits.
Ian Darwin [Wed, 24 Mar 1993 14:22:13 +0000 (14:22 +0000)]
Guy Harris: check has_escapes before names stuff, so can use as an
LPR checker for PCL stuff. Also some delinting.
Ian Darwin [Wed, 24 Mar 1993 13:50:29 +0000 (13:50 +0000)]
Updates from Guy Harris.
Ian Darwin [Wed, 17 Mar 1993 11:35:30 +0000 (11:35 +0000)]
Add new exclusions: Not subject to... USL, Novell.
Ian Darwin [Sun, 7 Mar 1993 02:28:18 +0000 (02:28 +0000)]
Change "PostScript document" to "PostScript text".
Ian Darwin [Fri, 19 Feb 1993 15:01:26 +0000 (15:01 +0000)]
Numerous changes from Guy Harris too numerous to mention but including
byte-order independance, fixing "old-style masking", etc. etc. A bugfix
for broken symlinks from martin@@d255s004.zfe.siemens.de.
Ian Darwin [Fri, 19 Feb 1993 14:55:05 +0000 (14:55 +0000)]
Lotsa addition, from Frame demo tape.
Ian Darwin [Fri, 19 Feb 1993 14:54:30 +0000 (14:54 +0000)]
Add "text" several places; rm duplication.
Ian Darwin [Fri, 19 Feb 1993 14:52:05 +0000 (14:52 +0000)]
Initial revision
Ian Darwin [Fri, 19 Feb 1993 14:52:03 +0000 (14:52 +0000)]
Removed this file as part of Guy Harris's megachanges, Jan '93.
Ian Darwin [Fri, 19 Feb 1993 14:38:59 +0000 (14:38 +0000)]
Initial revision
Ian Darwin [Fri, 19 Feb 1993 14:37:45 +0000 (14:37 +0000)]
Newly revised by Guy Harris.
Ian Darwin [Fri, 19 Feb 1993 14:36:15 +0000 (14:36 +0000)]
Guy Harris's Jan '93 megadeltas.
Ian Darwin [Fri, 19 Feb 1993 14:33:11 +0000 (14:33 +0000)]
Evolution in action.
Ian Darwin [Fri, 19 Feb 1993 14:32:13 +0000 (14:32 +0000)]
Ian Darwin [Fri, 19 Feb 1993 14:31:59 +0000 (14:31 +0000)]
Changes.
Ian Darwin [Fri, 19 Feb 1993 14:31:05 +0000 (14:31 +0000)]
New improved.
Ian Darwin [Fri, 19 Feb 1993 14:30:03 +0000 (14:30 +0000)]
Command text files.
Ian Darwin [Fri, 19 Feb 1993 14:27:49 +0000 (14:27 +0000)]
Silly one-liner, for magic file itself, from Guy Harris.
Ian Darwin [Fri, 19 Feb 1993 14:26:29 +0000 (14:26 +0000)]
Initial revision
Ian Darwin [Fri, 19 Feb 1993 14:22:48 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Add in support for multiple levels of continuation.
Add in support for "beshort", "belong", "bedate", "leshort",
"lelong", and "ledate" types.
Also, make old-style "not set"ting - "0 byte ^0x80 statically
linked", meaning "this line matches if any of the bits in the
value *aren't* set in the number from the file" - work.
Ian Darwin [Fri, 19 Feb 1993 14:22:47 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Add in support for "beshort", "belong", "bedate", "leshort",
"lelong", and "ledate" types.
NOTE: it doesn't support multi-level ">"; it wasn't clear to me
why it printed things such as "offset" and "indirect-offset" for
old-style continuations, as the offset into the file is an
absolute number *even for continuation lines*.
Ian Darwin [Fri, 19 Feb 1993 14:22:46 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Note that "short", "long", and "date" work in the native byte
order of the process running "file" (actually, I say "this
machine", but I could imagine UNIX on MIPS chips supporting both
big-endian and little-endian processes), and document "beshort",
"belong", "bedate", "leshort", "lelong", and "ledate".
Document old-style ANDing, now that it works.
Formatting nits.
Mention that ">\0" can be used to match any string, and thus to
print strings extracted from the file.
Document multi-level ">".
Document that I haven't yet implemented ways of specifying the
endianness of data to be used in indirect offsets.
Ian Darwin [Fri, 19 Feb 1993 14:22:45 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Put an extra '\0' at the end of the buffer before handing it to
"tryit()"; "ascmagic()" assumes the buffer is a '\0'-terminated
string, as it runs a copy of it through "strtok()".
Ian Darwin [Fri, 19 Feb 1993 14:22:44 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Add in support for multiple levels of continuation.
Add in support for "beshort", "belong", "bedate", "leshort",
"lelong", and "ledate" types.
Ian Darwin [Fri, 19 Feb 1993 14:22:43 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Leave room for the extra '\0' that "process()" puts at the end
of the buffer.
Ian Darwin [Fri, 19 Feb 1993 14:22:42 +0000 (14:22 +0000)]
Part of Guy Harris' Jan-93 rewrite, including:
Add in support for multiple levels of continuation.
Add in support for "beshort", "belong", "bedate", "leshort",
"lelong", and "ledate" types.
Fix the old-style ANDing - don't change it to a MASK op
relation, because:
there's already code to handle old-style ANDing and there's no
need to use the MASK op code to implement this;
the parser that used to be there assumed that there was a
*second* number that represented a value against which
to compare the ANDed value, and the old-style ANDing
*didn't* have that so lines containing the old-style
syntax "0 byte &0x80 dynamically linked" turned into
lines containing the new-style syntax "0 byte&0x80 0
dynamically linked", as the missing second value
defaulted to 0.
That may be where that bizarro "!074000,000000" stuff from the
Clipper magic number stuff came, but since you can just
*explicitly* implement that with new-style ANDing, one might as
well just do that....
Also, make old-style "not set"ting - "0 byte ^0x80 statically
linked", meaning "this line matches if any of the bits in the
value *aren't* set in the number from the file" - work.
Ian Darwin [Fri, 19 Feb 1993 14:11:26 +0000 (14:11 +0000)]
Update commentary on "-g"; change MANDIR to default to MAN5.
Add Localstuff and Header to dist list for Magdir. Add ftp, patchlevel,
and new rules.
Ian Darwin [Fri, 19 Feb 1993 14:10:50 +0000 (14:10 +0000)]
Add commentary about anding; add one cast to suppress lint.
Ian Darwin [Fri, 19 Feb 1993 12:19:40 +0000 (12:19 +0000)]
Initial revision
Ian Darwin [Fri, 19 Feb 1993 12:09:04 +0000 (12:09 +0000)]
Fix for broken symlink bug, from martin@d255s004.zfe.siemens.de.
Ian Darwin [Fri, 19 Feb 1993 12:08:27 +0000 (12:08 +0000)]
Initial revision
Ian Darwin [Fri, 19 Feb 1993 12:08:18 +0000 (12:08 +0000)]
Add gnu zip (gzip), from martin@d255s004.zfe.siemens.de.
Ian Darwin [Tue, 5 Jan 1993 14:57:27 +0000 (14:57 +0000)]
Couple of nits picked by Christos (again, thanks).
Ian Darwin [Tue, 5 Jan 1993 14:55:30 +0000 (14:55 +0000)]
Missing doc of "date".
Ian Darwin [Tue, 5 Jan 1993 14:55:13 +0000 (14:55 +0000)]
Christos: spelled his name wrong (old typo, sorry).