summaryrefslogtreecommitdiff
path: root/usr.bin/locate
AgeCommit message (Expand)Author
2019-01-17delete some historic $Id that have been chewed on by cvsTed Unangst
2019-01-14Various tweaks:Ingo Schwarze
2019-01-14Untimely spring cleaning:Ingo Schwarze
2018-05-30calling err after fgets assumes we're not at EOF.Marc Espie
2017-12-08Add missing length checks to make sure we don't dereference a pointerTodd C. Miller
2017-06-20Remove locate.concatdb, it never worked.Michal Mazurek
2016-09-01keep the code that endian swaps, but remove the explanation that it'sTed Unangst
2015-12-09include unistd.h for pledge() and err.h for err.h for err()Jonathan Gray
2015-11-21remove mlinks for aliases: ntalkd, mfs, updatedbJason McIntyre
2015-11-19Sort and simplify includes, remove a couple needless extern decls.mmcc
2015-11-15very simple pledges, stdio and rpath, very boringTheo de Raadt
2015-11-15pretty simple. pledge "stdio rpath" at startup, and pledge "stdio" afterTheo de Raadt
2015-10-23don't need MMAP to compile nowTed Unangst
2015-10-23correct spelling of statistic in function name, from Pablo HernandezTed Unangst
2015-10-23undent includes, from michael reedTed Unangst
2015-10-23mmap is the default. it's effectively the only tested codepath. so burn downTed Unangst
2015-08-14Move locate(1) database build directory back to /tmp and kill non-existentRafael Zalamena
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-11-16correct type in sizeof by switching to sizeof(*ptr). (harmless)Ted Unangst
2014-10-08userland reallocarray audit.Doug Hogan
2013-11-17Include unistd.h as it is the standard location for getopt().Okan Demirmen
2012-04-13Don't try to mmap a 0-length file.Antoine Jacoutot
2010-10-25Add missing FNM_CASEFOLD flag to fnmatch() when locate is run in caseTodd C. Miller
2010-07-15More delimiters that need quoting inside macros, hunted down by jmc@,Ingo Schwarze
2009-12-10Eliminate the confusing term "find codes database" which is used nowhere else.Ingo Schwarze
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2009-06-04error out if count gets out of bounds. Happens with corrupted databases,Marc Espie
2008-10-01in getrusage(), use RUSAGE_SELF for the current process rather than 0Kevin Lo
2008-07-26add -b to SYNOPSIS and usage();Jason McIntyre
2008-07-26Add -b switch for matching on the last part of the path only.Pierre-Yves Ritschard
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-06-25some wording improvements for -d and -m; from Jacek MasiulaniecJason McIntyre
2007-05-31convert to new .Dd format;Jason McIntyre
2007-04-13the ellipsis in the synopsis of this command is not an optionalIgor Sobrado
2007-03-18It's not smart to use a space as a field separator when a space canOtto Moerbeek
2007-03-15simplify synopsis/usage() and sort options. also fixes documentation/5411Jason McIntyre
2007-02-19- Check for fgets failure.Ray Lai
2006-08-05Remove "with with" typos.Ray Lai
2004-04-08sort options and sync usage();Jason McIntyre
2003-11-09Typos in comments from Jared Yanovich <jjy2+ at pitt dot edu>Otto Moerbeek
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-09-29knfTheo de Raadt
2003-09-29realloc fix; ok henning cloderTheo de Raadt
2003-09-25- indent and literal for examplesJason McIntyre
2003-09-02escape punctuation;Jason McIntyre
2003-07-10add missing includesDavid Krause
2003-07-07protosTheo de Raadt
2003-06-29Previous commit resulted in a zero-length locate db which I didn'tTodd C. Miller
2003-06-28Fix previous commit that broke locate. Unlike printf, print writes aTodd C. Miller
2003-06-24use print, not printf in awk; from ak at freeshellTodd C. Miller