2007-05-24 22:59:38 +01:00
|
|
|
$File: MAINT,v 1.9 2007/01/19 21:15:27 christos Exp $
|
1994-09-03 20:16:28 +01:00
|
|
|
|
|
|
|
Maintenance notes:
|
|
|
|
|
|
|
|
I am continuing to maintain the file command. I welcome your help,
|
|
|
|
but to make my life easier I'd like to request the following:
|
|
|
|
|
|
|
|
- Do not distribute changed versions.
|
|
|
|
|
|
|
|
People trying to be helpful occasionally put up their hacked versions
|
2007-05-24 17:12:23 +01:00
|
|
|
of the file command for anonymous FTP, and people all over the
|
|
|
|
world get copies of the hacked versions. Within a day or two I am
|
|
|
|
getting email from around the world asking me why "my" file command
|
|
|
|
won't compile!!! Needless to say this detracts from the limited
|
|
|
|
time I have available to work on the actual software. Therefore I
|
|
|
|
ask you again to please NOT distribute your changed version. If
|
|
|
|
you need to make changes, please add a patch file next to the
|
|
|
|
distribution tar, and a README file that clearly explains what you
|
|
|
|
are trying to fix.
|
1994-09-03 20:16:28 +01:00
|
|
|
|
|
|
|
Thank you for your assistance and cooperation.
|
|
|
|
|
2007-05-24 17:12:23 +01:00
|
|
|
Code Overview
|
|
|
|
|
|
|
|
This is a rough idea of the control flow from the main program:
|
|
|
|
|
|
|
|
file.c main()
|
|
|
|
file.c process (called for each file)
|
|
|
|
printf file name
|
|
|
|
magic.c magic_file()
|
|
|
|
fsmagic.c file_fsmagic()
|
|
|
|
(handles statbuf modes for DEV)
|
|
|
|
(handles statbuf modes for executable &c.
|
|
|
|
reads data from file.
|
|
|
|
funcs.c: file_buffer()
|
|
|
|
compress.c file_zmagic()
|
|
|
|
is_tar.c file_is_tar()
|
|
|
|
softmagic.c file_softmagic()
|
|
|
|
match() - looks for match against main magic database
|
|
|
|
ascmagic.c file_ascmagic()
|
|
|
|
readelf.c file_tryelf()
|
|
|
|
"unknown"
|
|
|
|
|
2000-11-05 08:33:55 +00:00
|
|
|
Christos Zoulas
|
|
|
|
christos@astron.com
|