Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | New implementation of the file(1) utility. This is a simplified, | 2015-04-24 | 1 | -2129/+0 | |
| | | | | | | | | 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 | ||||
* | Add missing <limits.h> to file.c and remove definition of PATH_MAX | 2015-01-16 | 1 | -5/+1 | |
| | | | | which masked the missing include. OK deraadt@ | ||||
* | Replace <sys/param.h> with <limits.h> | 2015-01-16 | 1 | -6/+6 | |
| | | | | | | | | | | | | This patch is from Theo. I helped verify that removing <sys/param.h> doesn't change anything. This produces the same binaries before and after with clang 3.5 and gcc 4.9.4 on amd64. There is a slight difference in the way it is generated by our old gcc 4.2.1 despite the fact that the preprocessed input is almost identical. ok deraadt@ | ||||
* | Place additional parantheses around readdir() and check return does not | 2014-10-26 | 1 | -2/+2 | |
| | | | | | | | | equal NULL. apprentice.c:645:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] With input and ok guenther@ | ||||
* | use reallocarray | 2014-05-18 | 1 | -11/+12 | |
| | | | | okay ian@, chl@ | ||||
* | Avoid size_t overflow in apprentice_map. | 2014-01-16 | 1 | -3/+5 | |
| | | | | ok millert | ||||
* | fix a buffer overflow found by parfait | 2009-11-11 | 1 | -2/+2 | |
| | | | | ok millert@ | ||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 1 | -5/+1 | |
| | | | | | | | 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 crap | 2009-08-27 | 1 | -5/+6 | |
| | | | | | gcc added") ok millert miod | ||||
* | file update to 4.24 | 2009-04-24 | 1 | -133/+410 | |
| | | | | | | | | | | | 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. | 2008-05-08 | 1 | -270/+973 | |
| | | | | | | tested by ian@ sthen@ OK ian@, "move ahead with it" deraadt@ | ||||
* | use strcspn instead of strchr to properly overwrite '\n' in fgets returned buffer | 2007-10-05 | 1 | -8/+5 | |
| | | | | | | check if the first byte is NUL instead of invoking strlen() with help of ray@ "Looks OK" millert@ | ||||
* | Don't blindly truncate buf[strlen(buf) - 1] without checking for | 2006-10-31 | 1 | -3/+7 | |
| | | | | | | | | | newline. Initial patch from Charles Longeau <chl at tuxfamily dot org>, fix inspired by comment by Anonymous Coward on undeadly. OK moritz@, ian@. | ||||
* | Remove unused variable, spotted by otto@ | 2006-04-04 | 1 | -3/+2 | |
| | |||||
* | Fix case where a string could not be correctly terminated, okay jaredy@ | 2006-04-04 | 1 | -4/+4 | |
| | |||||
* | tidy buffer sizes, from Alexander Farber, PR 3924. ok tedu@ | 2004-09-25 | 1 | -4/+4 | |
| | |||||
* | big update to file 4.09. ok ian@ | 2004-05-19 | 1 | -172/+694 | |
| | |||||
* | ian gives permission for 3/4 removal | 2003-06-13 | 1 | -7/+2 | |
| | |||||
* | string fixes; ian ok | 2003-04-07 | 1 | -5/+8 | |
| | |||||
* | Replace TPUM license with standard BSD-style license | 2003-03-11 | 1 | -24/+32 | |
| | |||||
* | Swap args to calloc(3) so they are in the correct order; art@ ok. | 2002-08-12 | 1 | -3/+3 | |
| | |||||
* | use types in inttypes.h directly | 2002-06-05 | 1 | -5/+5 | |
| | |||||
* | Remove \n from err/errx/warn/warnx(). | 2002-03-14 | 1 | -3/+3 | |
| | | | | millert@ ok | ||||
* | 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. | 2002-02-16 | 1 | -8/+8 | |
| | |||||
* | kill more registers | 2001-11-19 | 1 | -7/+7 | |
| | | | | millert@ ok | ||||
* | warnx?/errx? paranoia (use "%s" not a bare string unless it is a | 2000-06-30 | 1 | -3/+3 | |
| | | | | | | | | | constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales). | ||||
* | oflow | 1999-12-06 | 1 | -3/+3 | |
| | |||||
* | Increase MAXMAGIS again, and change the reallocation - don't need to | 1999-09-26 | 1 | -5/+6 | |
| | | | | skimp on memory as much as when this code was written! (Thanks Theo). | ||||
* | oops | 1998-08-21 | 1 | -3/+3 | |
| | |||||
* | realloc fix | 1998-08-19 | 1 | -5/+10 | |
| | |||||
* | err/warn | 1998-07-10 | 1 | -16/+13 | |
| | |||||
* | Updates file(1) to version 3.22 by way to NetBSD. | 1997-02-09 | 1 | -13/+13 | |
| | |||||
* | rcsid | 1996-06-26 | 1 | -2/+2 | |
| | |||||
* | update from netbsd | 1995-12-14 | 1 | -20/+52 | |
| | |||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+590 | |