Commit Graph

48 Commits

Author SHA1 Message Date
steve
0cf17b5c49 /etc/magic -> /usr/share/misc/magic
PR:		docs/4872
1997-11-04 03:56:56 +00:00
ache
2bc6063c47 Check for invalid lower controls to not claim binary data with chars < 128 as
ASCII _text_
Cleanup names detection code
1997-10-04 01:03:28 +00:00
obrien
d864dead3e Add magic for FIGlet fonts and controlfiles
Obtained from:	Figlet v2.2 release.
1997-06-29 10:06:56 +00:00
mpp
32a98e7de4 Remove the etc-magic target since we no longer install the
/etc/magic symlink.
1997-04-04 02:42:53 +00:00
mpp
96e1c49db0 The magic file now lives in /usr/share/misc.
Closes PR# 3187.

Submitted by:	Ollivier Robert <roberto@keltia.freenix.fr>
1997-04-04 02:41:01 +00:00
jdp
e92137872c Fix broken built-in ELF file handling, caused by missing prototypes
and use of off_t.  Correct the types of Elf64_Addr and Elf64_Off.
1997-03-29 22:26:03 +00:00
imp
cd84ece5fd compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 04:34:07 +00:00
mpp
a3449bd896 I had to rename one additional file in the last file import, so
update this script to reflect that.
1997-03-20 23:34:11 +00:00
mpp
dcb3783e42 The author picked up this file from FreeBSD, but gave it a different name
in file v3.22, so this one is going away.
1997-03-18 19:39:26 +00:00
mpp
2405937481 Merge to resolve conflicts with file 3.22 merge. 1997-03-18 19:37:41 +00:00
mpp
c87750cd5c This commit was generated by cvs2svn to compensate for changes in r23988,
which included commits to RCS files with non-trunk default branches.
1997-03-18 18:00:03 +00:00
mpp
718f6edeea Upgrade to file version 3.22.
Obtained from: ftp://ftp.deshaw.com/pub/file/file-3.22.tar.gz
1997-03-18 18:00:03 +00:00
peter
aef78d145b Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
peter
1616dd447f Revert $FreeBSD$ to $Id$ 1997-02-22 19:29:21 +00:00
phk
20a04e1ae5 Add framemaker 5.0.
This file could be rationalized I belive.
1997-02-04 17:06:19 +00:00
jkh
9c0cd3f9df Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
joerg
311e52d4e7 Move the check for ASCIIness earlier. This avoids the following
misdetection:

j@uriah 307% file X.hga
X.hga: 80386 COFF executable not stripped
j@uriah 308% strings X.hga | head -3
~f&`i
.text
.data
j@uriah 309% strings X.hga | file -
standard input:              assembler program text

New version:

j@uriah 310% strings X.hga | ./file -
standard input:              International language text

Reviewed by:	christos@deshaw.com (Christos Zoulas)
1996-12-20 22:19:18 +00:00
bde
4799a37d38 Restored installation of /etc/magic. It's now a symlink instead of a
file (like /etc/termcap).  /usr/src/etc/Makefile depends on there
being an etc-magic install rule here, and who-knows-what depends on
`magic' being in /etc.

Fixed some style bugs - don't use -c for installing files in the obj
directory...
1996-12-13 11:49:16 +00:00
joerg
6db15ab3c0 Add another matching algorithhm to do heuristics for international
language text files.

Should finally close PR # bin/1925: file does not consider cyrillic
text..., though i've never got any response from the originator about
my suggestion.

While i was at it, also move out the `magic' file to /usr/share/misc,
there's nothing that magic with this file to justify its life under
/etc.
1996-12-11 14:09:12 +00:00
ache
2302e0ff02 Detect GUS patches now 1996-11-17 11:03:07 +00:00
cvs2svn
749d99ac7a This commit was manufactured by cvs2svn to create branch 'VENDOR-file'. 1996-10-24 15:49:52 +00:00
erich
e850b4a5b7 Teach file about:
1) our branded elf's
2) mpeg audio/video/system streams
3) compiled java classes
1996-10-24 15:49:51 +00:00
andreas
906926d62b Added magic file for bzip in ./Magdir
Obtained from: bzip sources ;)
1996-09-27 21:57:12 +00:00
jdp
0b6fa0164a Make "file foo.core" print the program name properly again. 1996-09-05 15:55:57 +00:00
wosch
2aadcd5e13 make install should not install any file in /etc. 1996-08-17 22:27:08 +00:00
jkh
7a52c5d03f New magic file with more politically correct identification of objects
and execs.
Submitted-By: Brent Nordquist <nordquis@winternet.com>
1996-07-05 19:26:52 +00:00
jdp
038059743d Update an offset field for i386 a.out core files, so that the program
name comes out right again.

Note: Don't bring this change directly into the -stable branch.  The
appropriate offset for -stable is different.
1996-04-18 19:05:58 +00:00
jdp
925cbabf1d Fix a typo in the syntax for indirect offsets. 1996-04-18 18:17:14 +00:00
mpp
1564b8826e Fixed some minor formatting problems to silence manck some more.
Corrected some bogus cross references to man pages that we don't/won't
have and either deleted them, or found a more appropriate man page
that we do have.  Various other minor changes to silence manck.

Manck is currently down to about 200 lines of errors, down from
the 500 - 600+ when I started all this.
1996-02-12 01:20:38 +00:00
wollman
4afbb5b293 Recognize ld.so.hints file. Don't ask. 1996-02-07 21:02:20 +00:00
mpp
587481e04a Correct some manual page cross reference errors. E.g. su is a section
one man page, not section eight.  This is the first round of such changes
and only fixes man pages in manual section one.
1996-02-02 00:26:12 +00:00
mpp
029ea9012d Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
mpp
ff607b128e Merged changes to resolve conflicts with file 3.19 import. 1996-01-23 12:40:36 +00:00
mpp
c335a06568 Upgrade to file version 3.19. 1996-01-23 12:29:07 +00:00
mpp
03f7da09aa This commit was generated by cvs2svn to compensate for changes in r13584,
which included commits to RCS files with non-trunk default branches.
1996-01-23 12:29:07 +00:00
phk
a5496bcd56 Recognize Acrobat files too. 1995-10-19 15:19:03 +00:00
joerg
5d6e7e702f Implement a rather gross hack to identify i386 a.out core files.
Takes advantage of some bytes in our current tss structure that
reliably have particular values (due to our current architecture or
CPU requirements).
1995-09-21 20:10:52 +00:00
joerg
926bbf9cc0 Add X11 XPM and BDF description strings. Alas, bitmaps do not have
anything usable as "magic string".
1995-09-17 19:22:00 +00:00
phk
c0d6114459 Sanitize the PGP strings a bit. 1995-08-03 07:11:45 +00:00
bde
8a5789682c Change install' to ${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
1995-07-25 00:37:58 +00:00
mpp
43b276b93c Add magic cookie for Zyxel modems ADPCM4 encoding.
Submitted by: Henrik Vestergaard Draboel <hvd@terry.ping.dk>
1995-07-24 03:59:15 +00:00
rgrimes
79e59e9123 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
ache
9e777f0f9f Fix %d and others printing
Reviewed by: davidg
Submitted by: Bill Fenner <fenner@parc.xerox.com>
1995-05-24 02:54:30 +00:00
gibbs
cbfb49f75a Add recognition of HP Printer Job Language (PJL) commands. 1995-03-24 01:17:29 +00:00
csgr
306628be57 Shell script containing the steps followed in importing file(1).
Reviewed by:	Geoff.
Submitted by:	Rod Grimes.
1994-09-03 23:08:40 +00:00
csgr
5d7938a7cb Changes to file(1) for FreeBSD:
- Makefile: bmake the sucker
- file.1, magic.5: replace __MAGIC__ and __SECTION__
- add Magdir/freebsd
- add file to usr.bin/Makefile

A note on the FreeBSD magic entry:
The magic number "000000407" is reported as "impure format".  This
stops file(1) telling us that our object files are "PDP-11 executables".
(Saying anything more than "impure format" would probably be bogus.
Submitted by:	Geoff.
1994-09-03 19:31:29 +00:00
csgr
8d1a4c7e86 Bring in file 3.14 by Ian Darwin (and Christos Zoulas)
The following files were moved to different names:
- file.man -> file.1
- magic.man -> magic.5

The following file was removed:
- Magdir/Makefile
1994-09-03 19:16:28 +00:00
rgrimes
1e5214367d BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00