summaryrefslogtreecommitdiff
path: root/usr.bin/file
AgeCommit message (Collapse)Author
2009-06-07remove filechristos
2008-08-30no more magic.mimechristos
2007-05-28Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on thetls
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to various string and memory copy and set functions (as well as a few system calls and other miscellany) where known at function entry. RedHat has evidently built all "core system packages" with this option for some time. This option should be used at the top of Makefiles (or Makefile.inc where this is used for subdirectories) but after any setting of LIB. This is only useful for userland code, and cannot be used in libc or in any code which includes the libc internals, because it overrides certain libc functions with macros. Some effort has been made to make USE_FORT=yes work correctly for a full-system build by having the bsd.sys.mk logic disable the feature where it should not be used (libc, libssp iteself, the kernel) but no attempt has been made to build the entire system with USE_FORT and doing so will doubtless expose numerous bugs and misfeatures. Adjust the system build so that all programs and libraries that are setuid, directly handle network data (including serial comm data), perform authentication, or appear likely to have (or have a history of having) data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default, with the exception of libc, which cannot use USE_FORT and thus uses only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no per-directory or in a system build will disable if desired.
2006-10-22Include bsd.sys.mk so that HOST_SH is defined. (Hi apb)christos
2006-10-08WFORMAT is no more...peter
2006-09-29Use ${HOST_SH}, not just sh, in the shell command to set MAGDIRF.apb
2004-06-16Force LANG=C before doing the shell glob to avoid collation issues on hostsjmc
(otherwise it might pick up CVS for instance)
2003-10-21Rework how MAKEVERBOSE operates:lukem
* Don't bother prefixing commands with a line of ${_MKCMD}\ and instead rely upon "make -s". This is less intrusive on all the Makefiles than the former. Idea from David Laight. * Rename the variables use to print messages. The scheme now is: _MKMSG_FOO Run _MKMSG 'foo' _MKTARGET_FOO Run _MKMSG_FOO ${.TARGET} From discussion with Alistair Crooks.
2003-10-19support MAKEVERBOSElukem
2003-09-17have DPADDitojun
2003-07-10Rename a large chunk of the make(1) variables which refer to alukem
program/tool from "FOO" to "TOOL_FOO". The new variables are: TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC For each, provide default in <bsd.sys.mk> of the form: TOOL_FOO?= foo and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override: TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo Document all of these in bsd.README. This cleans up a chunk of potential (and actual) namespace collision within our build infrastructure, as well as improves consistency in the share/mk documentation and provision of appropriate defaults for each of these variables.
2003-05-26Adapt to new magic compilation behaviour: copy magic.mime to objdirpooka
before compiling it so that we get the output also in the objdir instead of the distdir
2003-04-12Link libz after libmagic otherwise it fails on NOPIC ports.tsutsui
2003-04-05use ${CAT} instead of catpooka
2003-04-05When not using TOOLS, compile magic using the newly-built binarypooka
as suggested by Ken Wellsch in bin/20996
2003-03-26use file from distpooka
2003-03-14__APPLE__ has <stdint.h>, too.thorpej
2003-02-28If the NetBSD version note looks reasonable, parse it and display thethorpej
info.
2003-02-26don't trust sizes comming in from the elf file.christos
2003-02-26make this compilechristos
2003-02-26fix a memory allocation issue.christos
2003-02-10replace linux examples with netbsd examplesross
2003-01-20Detect ns32k ELF files.simonb
2003-01-06writable, not writeable.wiz
2002-12-22Actually return a different code for big-endian UTF-16 in looks_unicode().is
Fixes PR 19487.
2002-12-06Need <stdlib.h> for exit() prototype.thorpej
2002-10-02interpret, not interpet. By Adrian Mrva.wiz
2002-09-30New sentence, new line.grant
2002-09-28recognize Apple UFS Volume labelsdbj
2002-09-16Also HAVE_STDINT_H if defined(__linux__).briggs
2002-09-15Don't include <sys/cdefs.h> directly. On a NetBSD system, it will bethorpej
pulled in by <sys/types.h>, and on a non-NetBSD system (host tool case), it doesn't really matter (since it's just for the __RCSID macro). There are larger problems with mkmagic's host tool-ness. A PR has been filed.
2002-08-12calloc() arg mistake. it's (nelem, size). from openbsditojun
2002-08-02work around cross-compile problems on 1.5.x, don't try to includepooka
<stdint.h> on that platform
2002-07-15add additional StuffIt format.grant
2002-07-10minor shuffles to make this more like the vendor versionpooka
2002-07-10Yamaha TX Wavepooka
from Ben Collver <collver1@attbi.com> in misc/17487
2002-07-10add scream tracker sample magicpooka
from Ben Collver <collver1@attbi.com> in misc/17486
2002-07-10move impulse tracker data files into audiopooka
2002-07-09change versions for file 3.39pooka
2002-07-09end this destructive conflictpooka
2002-07-09file 3.39pooka
2002-06-14Remove #if __STDC__, de-__P() and ANSIfy.wiz
Okay'd by christos.
2002-06-05use types defined in inttypes.h.itojun
have attribute(packed) to struct magic to make it packed in the same way across different archs.
2002-05-30Don't use multi-line string literals.thorpej
2002-05-21PR/16941: Antti Kantee: Clean up unused functions.christos
2002-05-21file(1) magic for Human68k (X680x0 DOS) binary formatsitohy
2002-05-18adapt to 3.38pooka
2002-05-18fix botchpooka
2002-05-18add zlibpooka
2002-05-18conflict therapypooka