diff options
author | Ian Darwin <ian@cvs.openbsd.org> | 2006-07-18 15:03:26 +0000 |
---|---|---|
committer | Ian Darwin <ian@cvs.openbsd.org> | 2006-07-18 15:03:26 +0000 |
commit | 6f6e4e3642c5a9af4ae414448f558ced07b6b9ba (patch) | |
tree | 9bc4dfcb756056caac9b414154f720b282724f40 /usr.bin/file | |
parent | 349eae8829665e20def3e3f856b2d9d6f2ce5674 (diff) |
Documentation-only change: sync with current version
Diffstat (limited to 'usr.bin/file')
-rw-r--r-- | usr.bin/file/MAINT | 44 |
1 files changed, 33 insertions, 11 deletions
diff --git a/usr.bin/file/MAINT b/usr.bin/file/MAINT index 62776212b13..f7889af8e99 100644 --- a/usr.bin/file/MAINT +++ b/usr.bin/file/MAINT @@ -1,4 +1,4 @@ -$OpenBSD: MAINT,v 1.2 1996/06/26 05:32:52 deraadt Exp $ +$OpenBSD: MAINT,v 1.3 2006/07/18 15:03:25 ian Exp $ Maintenance notes: @@ -18,16 +18,38 @@ short. - Do not distribute changed versions. People trying to be helpful occasionally put up their hacked versions -of the file command for FTP, then the "archie" server finds and publishes -the hacked version, and people all over the world get copies of it. -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. - +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. Thank you for your assistance and cooperation. -Mark Moraes Christos Zoulas -moraes@deshaw.com christos@deshaw.com +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() + "unknown" +readelf.c file_tryelf() + +Christos Zoulas +christos@astron.com |