summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/file.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove old unused prototype, from Ilya Kaliman.nicm2016-06-121-4/+1
|
* Use a systrace(4) sandbox with a short whitelist of allowed syscalls fornicm2015-04-271-1/+4
| | | | | the file(1) child process. Based on similar code in ssh sandbox-systrace.c. Idea and help from deraadt@.
* Add a _file user and use for privsep, ok deraadtnicm2015-04-271-2/+2
|
* Add simple privilege separation to file(1). Two processes, filenicm2015-04-271-1/+4
| | | | | descriptors and a few other bits are opened in parent and passed to child using imsg. Child currently drops to "nobody" but this will change.
* Trying to drop privileges means we can't handle ARG_MAX arguments, sonicm2015-04-241-4/+1
| | | | remove it for now.
* New implementation of the file(1) utility. This is a simplified,nicm2015-04-241-379/+25
| | | | | | | | modernised version with a nearly complete magic(5) parser but omits some of the complex builtin tests (notably ELF) and has a reduced set of options. ok deraadt
* use reallocarrayespie2014-05-181-2/+3
| | | | okay ian@, chl@
* variety of fixes to correct large time_t code. it is quite broken upstream.deraadt2013-04-171-3/+3
| | | | ok chl
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-10/+2
| | | | | | | 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
* Appease gcc2 (I wish people would write in C, rather than "latest crapderaadt2009-08-271-3/+3
| | | | | gcc added") ok millert miod
* file update to 4.24chl2009-04-241-28/+58
| | | | | | | | | | | 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@
* Update file to 4.21.chl2008-05-081-47/+184
| | | | | | tested by ian@ sthen@ OK ian@, "move ahead with it" deraadt@
* typos; ok jmc@martynas2007-11-261-3/+3
| | | | | sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
* Fix possible heap overflow in file(1), aka CVE-2007-1536.dim2007-07-091-3/+3
| | | | | | | | | 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@.
* big update to file 4.09. ok ian@tedu2004-05-191-92/+165
|
* Typos in comments from Jared Yanovich <jjy2+ at pitt dot edu>otto2003-11-091-2/+2
|
* protosderaadt2003-07-021-1/+4
|
* ian gives permission for 3/4 removalderaadt2003-06-131-6/+1
|
* Replace TPUM license with standard BSD-style licenseian2003-03-111-23/+31
|
* Bring in readelf.c from Christos' version 3.41 to head off a localian2003-03-031-2/+14
| | | | | | | stack attack noted by iDefense, and for more complete 64-bit ELF support. Add hand-made config.h to avoid running configure but still be able to use Christos' code. In print.c add error(...)-->err(1,...) wrapper. Tested on i386, sparc64, macppc.
* use types in inttypes.h directlyitojun2002-06-051-12/+8
|
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-171-12/+1
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-17/+17
|
* Increase MAXMAGIS again, and change the reallocation - don't need toian1999-09-261-2/+2
| | | | skimp on memory as much as when this code was written! (Thanks Theo).
* unsigned char fix; rahndsderaadt1998-10-131-3/+4
|
* err/warnmickey1998-07-101-3/+1
|
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-2/+2
|
* Updates file(1) to version 3.22 by way to NetBSD.millert1997-02-091-8/+28
|
* rcsidderaadt1996-06-261-1/+1
|
* initial import of NetBSD treederaadt1995-10-181-0/+131