summaryrefslogtreecommitdiffstats
path: root/usr.bin/locate
AgeCommit message (Expand)AuthorFilesLines
2020-01-07Clarify that zero matches are not an error.zhuk1-2/+5
2019-09-10Skip fcodes parent dir permission check if writing to stdout.millert1-5/+7
2019-08-31Previous change prevented non-root uses of locate by users.kmos1-6/+7
2019-08-30locate.updatedb can't update the database unless it is run as root.kmos1-1/+6
2019-01-17delete some historic $Id that have been chewed on by cvstedu9-24/+10
2019-01-14Various tweaks:schwarze1-15/+19
2019-01-14Untimely spring cleaning:schwarze4-92/+30
2018-05-30calling err after fgets assumes we're not at EOF.espie1-4/+9
2017-12-08Add missing length checks to make sure we don't dereference a pointermillert1-4/+6
2017-06-20Remove locate.concatdb, it never worked.akfaew2-76/+3
2016-09-01keep the code that endian swaps, but remove the explanation that it'stedu1-5/+3
2015-12-09include unistd.h for pledge() and err.h for err.h for err()jsg1-2/+4
2015-11-21remove mlinks for aliases: ntalkd, mfs, updatedbjmc1-3/+2
2015-11-19Sort and simplify includes, remove a couple needless extern decls.mmcc1-16/+8
2015-11-15very simple pledges, stdio and rpath, very boringderaadt2-4/+10
2015-11-15pretty simple. pledge "stdio rpath" at startup, and pledge "stdio" afterderaadt1-2/+8
2015-10-23don't need MMAP to compile nowtedu1-3/+3
2015-10-23correct spelling of statistic in function name, from Pablo Hernandeztedu1-5/+5
2015-10-23undent includes, from michael reedtedu1-6/+6
2015-10-23mmap is the default. it's effectively the only tested codepath. so burn downtedu3-160/+16
2015-08-14Move locate(1) database build directory back to /tmp and kill non-existentrzalamena1-3/+3
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt5-30/+29
2014-11-16correct type in sizeof by switching to sizeof(*ptr). (harmless)tedu1-6/+6
2014-10-08userland reallocarray audit.doug1-4/+4
2013-11-17Include unistd.h as it is the standard location for getopt().okan1-3/+6
2012-04-13Don't try to mmap a 0-length file.ajacoutot1-2/+4
2010-10-25Add missing FNM_CASEFOLD flag to fnmatch() when locate is run in casemillert1-2/+7
2010-07-15More delimiters that need quoting inside macros, hunted down by jmc@,schwarze1-4/+4
2009-12-10Eliminate the confusing term "find codes database" which is used nowhere else.schwarze1-5/+7
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt3-49/+6
2009-06-04error out if count gets out of bounds. Happens with corrupted databases,espie2-5/+15
2008-10-01in getrusage(), use RUSAGE_SELF for the current process rather than 0kevlo1-4/+4
2008-07-26add -b to SYNOPSIS and usage();jmc2-7/+7
2008-07-26Add -b switch for matching on the last part of the path only.pyr3-10/+27
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt1-3/+3
2007-06-25some wording improvements for -d and -m; from Jacek Masiulaniecjmc1-5/+5
2007-05-31convert to new .Dd format;jmc2-5/+5
2007-04-13the ellipsis in the synopsis of this command is not an optionalsobrado1-7/+5
2007-03-18It's not smart to use a space as a field separator when a space canotto3-10/+13
2007-03-15simplify synopsis/usage() and sort options. also fixes documentation/5411jmc2-18/+16
2007-02-19- Check for fgets failure.ray1-5/+6
2006-08-05Remove "with with" typos.ray1-4/+4
2004-04-08sort options and sync usage();jmc2-11/+11
2003-11-09Typos in comments from Jared Yanovich <jjy2+ at pitt dot edu>otto1-4/+4
2003-11-08typos from Jonathon Gray;jmc1-4/+4
2003-09-29knfderaadt6-134/+128
2003-09-29realloc fix; ok henning cloderderaadt1-27/+31
2003-09-25- indent and literal for examplesjmc2-21/+22
2003-09-02escape punctuation;jmc1-3/+3
2003-07-10add missing includesdavid1-3/+4