summaryrefslogtreecommitdiff
path: root/usr.bin/file
AgeCommit message (Collapse)Author
2010-01-17Backport bug fix from upstream.Charles Longeau
Bug found by sthen@ ok sthen@ ian@
2010-01-02Various syntax errors in list headers, found by mandoc(1),Ingo Schwarze
also required to fix the mandoc build. "fine. even if mandoc goes nowhere, it has found some bugs ;)" jmc@ ok sobrado@
2009-12-23partion -> partition. First one (mkfs.c) noted by Brad Tilley on tech@.Kenneth R Westerback
2009-11-26grammar;Jason McIntyre
2009-11-11fix a buffer overflow found by parfaitJonathan Gray
ok millert@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-26Fix usage; requested by jmc@Antoine Jacoutot
ok jmc@ ian@
2009-10-26Bring man pages on par with our file(1) version (merge from upstream withAntoine Jacoutot
several tweaks). As usual, several enhancements and inputs from jmc@ Input from ian@ ok jmc@ ian@
2009-09-03Correctly escape spaces in the Erlang 4.2/4.3 magic.Stuart Henderson
Fixes printing on Tuesdays from some applications. ok ian@ (yes really - http://catless.ncl.ac.uk/Risks/25.77.html#subj14)
2009-08-27Appease gcc2 (I wish people would write in C, rather than "latest crapTheo de Raadt
gcc added") ok millert miod
2009-08-16replace ".Ar file ..." with ".Ar" whenever possible.Igor Sobrado
ok jmc@
2009-06-13Define SIZEOF_LONG_LONG in config.h, so that the byteswapping code in ELFMiod Vallat
specific parsing works correctly on BE64 systems.
2009-04-26add missing $OpenBSD$ tagsCharles Longeau
ok ian@
2009-04-24file update to 4.24Charles Longeau
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@
2009-04-14force magic file to include all magdir files in alphabetical order,Charles Longeau
preparing the way for upcoming update to file 4.24 almost entirely written by espie@ "Go ahead, commit it." espie@
2008-11-09protect against .orig files resulting from a patch.Marc Espie
2008-05-14add missing $OpenBSD$ tagsCharles Longeau
ok ian@
2008-05-08Update file to 4.21.Charles Longeau
tested by ian@ sthen@ OK ian@, "move ahead with it" deraadt@
2007-11-26typos; ok jmc@Martynas Venckus
sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
2007-10-05use strcspn instead of strchr to properly overwrite '\n' in fgets returned ↵Charles Longeau
buffer check if the first byte is NUL instead of invoking strlen() with help of ray@ "Looks OK" millert@
2007-09-14remove some warnings:Charles Longeau
unused variable `variable' `variable' might be used uninitialized in this function ok gilles@ ray@
2007-09-11use strcspn to properly overwrite '\n' in fgets returned bufferGilles Chehade
ok pyr@, ray@, millert@, moritz@, chl@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-07-09Fix possible heap overflow in file(1), aka CVE-2007-1536.Dimitry Andric
When writing data into a buffer in the file_printf() function, the length of the unused portion of the buffer is not correctly tracked, resulting in a buffer overflow when processing certain files. Adapted from FreeBSD's SA-07:04.file fix, with ok and some minor tweaks from canacar@ and ray@.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-04-08detect MP3 file with ID3 v2 tagNikolay Sturm
ok deraadt
2007-03-29let the description of -m match SYNOPSIS and usage(); from Igor SobradoJason McIntyre
2007-02-28spell maintenance correctlyDavid Krause
2007-02-27Recognize OpenBSD/sh core dumps.Miod Vallat
2007-02-24Remove several incorrect and/or unmaintained emails, prompted by correction ↵Ian Darwin
from bernd@
2007-02-19Our version of file(1) doesn't have the MIME magic file, so removeTom Cosgrove
references to -i/--mime and no longer accept them on the command line. Update the HISTORY section to be less confusing. Based on a diff to tech@ by Mikolaj Kucharski, mikolaj (dot) kucharski (at) gmail (dot) com. Prompted by jmc@; input from and ok jmc@ and otto@
2006-10-31Don't blindly truncate buf[strlen(buf) - 1] without checking forRay Lai
newline. Initial patch from Charles Longeau <chl at tuxfamily dot org>, fix inspired by comment by Anonymous Coward on undeadly. OK moritz@, ian@.
2006-10-12recognize 'sh' binaries.Dale Rahn
2006-07-18Sync with currentIan Darwin
2006-07-18Remove obsoleteIan Darwin
2006-07-18Documentation-only change: sync with current versionIan Darwin
2006-07-18Sync copyright dateIan Darwin
2006-06-02Replaced by new stuff in regressIan Darwin
2006-04-04Remove unused variable, spotted by otto@Pedro Martelletto
2006-04-04Fix case where a string could not be correctly terminated, okay jaredy@Pedro Martelletto
2005-10-20spelling;Jason McIntyre
ok ian@
2005-09-06recognize flac format; from netbsd viaFederico G. Schwindt
Okan Demirmen <okan@demirmen.com> to tech@; deraadt@ ok.
2005-05-18fix error message; ok ianJared Yanovich
2005-04-11handle -1 potential case from snprintf tooTheo de Raadt
2005-01-31recognize OpenEXR images.Marc Espie
okay ian Darwin.
2004-12-04sync manual and usage to file-4.09; bits from and ok ian and jmcJared Yanovich
2004-10-27oops! one line wrongPer Fogelstrom
2004-10-27Change how MIPS ISA level is output to be consistent with other arches.Per Fogelstrom
ok deraadt, grange and ian
2004-10-23Sparc->SPARCAlexander Yurchenko
Amd->AMD ok ian@
2004-10-20More mips executables from NetBSD.Alexander Yurchenko
ok ian@ tedu@