summaryrefslogtreecommitdiff
path: root/usr.bin/file
AgeCommit message (Collapse)Author
2014-01-16Avoid size_t overflow in apprentice_map.Tobias Stoeckmann
ok millert
2013-04-20use poll() instead of select() with a limited-size fd_setTheo de Raadt
2013-04-17variety of fixes to correct large time_t code. it is quite broken upstream.Theo de Raadt
ok chl
2013-01-17remove uesless Pp;Jason McIntyre
2013-01-05teach file about lua 5.2.Federico G. Schwindt
ok miod@
2012-04-10Add a start record to the ktrace and use a special magic string "KTR"Mike Belopuhov
to identify ktrace files. kdump(1) will now refuse to operate on trace data without the start record and as a bonus will print only PID, unless an -H flag is specified to print PID/TID pairs. Initial diff, input from and ok deraadt, guenther.
2011-10-15Ignatios Souvatzis at NetBSD rescinded the third and fourth clause inIngo Schwarze
his license on Nov 9, 2009, see NetBSD CVS rev. 1.2. Pointed out by tedu@, following a question from <pancake at youterm com> forwarded by edd@.
2011-07-25- Use strtof instead of casting strtod back to float (apprentice.c),Martynas Venckus
- Don't reimplement strndup (softmagic.c). OK millert@.
2011-04-15Make the file_mbswidth() function cope if wcwidth() returns -1.Stefan Sperling
ok mikeb millert
2011-01-10delete embarrasingly horrid use of mktemp() brought in from upstreamTheo de Raadt
ok millert
2010-10-28more roff adjustments;Jason McIntyre
2010-09-03add an EXIT STATUS section for /usr/bin;Jason McIntyre
2010-07-15some escapes i missed;Jason McIntyre
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