[BACK]Return to MAINT CVS log [TXT][DIR] Up to [local] / src / usr.bin / file

File: [local] / src / usr.bin / file / Attic / MAINT (download)

Revision 1.3, Tue Jul 18 15:03:25 2006 UTC (17 years, 10 months ago) by ian
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.2: +33 -11 lines

Documentation-only change: sync with current version

$OpenBSD: MAINT,v 1.3 2006/07/18 15:03:25 ian Exp $

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:

- Don't change the version numbers!

If your changes are extensive, I will have to work hard to 
integrate them into my version.  If you check it into SCCS locally,
the version numbers will likely be kept. IF you check it into RCS
or CVS locally, please use -k to keep the version numbers, and
please use branch deltas (1.21.1, 1.21.2, ...).  If you don't do
this, I will likely be unable to use your changes; life's just too
short.

- Do not distribute changed versions.

People trying to be helpful occasionally put up their hacked versions
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.

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