[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.5, Fri Apr 24 18:54:34 2009 UTC (15 years ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.4: +2 -3 lines

file update to 4.24

The '-i' switch is now enabled so file(1) can output mime type strings.

ok ian@
builk ports build test on amd64 by jasper@

ok ray@ gilles@ on a almost identical diff
builk ports build test on sparc64 on this almost identical diff by ajacoutot@
also tested by landry@

$OpenBSD: MAINT,v 1.5 2009/04/24 18:54:34 chl 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:

- 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()
readelf.c		file_tryelf()
				"unknown"

Christos Zoulas (see README for email address)