summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/glob.c
AgeCommit message (Expand)AuthorFilesLines
2020-04-21Prevent infinite for loop since i went from ssize_t to size_t. Patch fromdtucker1-3/+3
2019-02-04Make gl_pathc, gl_matchc and gl_offs size_t in glob_t to match POSIX.millert1-17/+16
2017-05-08Fix exponential CPU use with repeated '*' operators by changing '*'millert1-21/+34
2015-12-28Remove NULL-checks before free() and a few related dead assignments.mmcc1-9/+5
2015-11-24Use reentrant versions of getpw{nam,uid} and getgr{nam,gid} withinmillert1-5/+9
2015-09-14remove null check before free. from Michael McConvilletedu1-5/+3
2015-06-13in glob() initialize the glob_t before the first failure check.deraadt1-4/+4
2015-02-05Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@millert1-1/+2
2014-10-08obvious realloc -> reallocarray conversionderaadt1-3/+3
2013-09-30Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,millert1-15/+14
2012-01-20the glob stat limit is way too low. bump to 2048.tedu1-4/+4
2011-09-22fix GLOB_KEEPSTAT without GLOB_NOSORT; the implicit sort was beingdjm1-6/+44
2011-09-20In glob(3), limit recursion during matching attempts. Similar to fnmatch fix.stsp1-5/+17
2011-05-12When the max number of items for a directory has reached GLOB_LIMIT_READDIRpyr1-2/+3
2011-01-12avoid some integer overflows mostly with GLOB_APPEND and GLOB_DOOFFSdjm1-4/+12
2010-10-08Extend GLOB_LIMIT to cover readdir and stat and bump the malloc limitnicm1-27/+63
2010-09-26oops, don't free array before freeing members; spotted by dkrause@djm1-2/+2
2010-09-24add a GLOB_KEEPSTAT option that retains a copy of the struct statdjm1-13/+61
2010-05-19remove unused variablechl1-2/+1
2010-03-23Fix glob(3) to correctly return an error when its buffer space isnicm1-13/+11
2009-11-21replacing malloc/realloc dance, by only one reallocchl1-3/+2
2009-02-18Add missing braces. This is why we use braces for indented block thatmillert1-2/+3
2008-10-01POSIX character class support for fnmatch(3) and glob(3). OK deraadt@millert1-6/+72
2005-11-28unused arg in internal static APIderaadt1-6/+6
2005-08-08zap remaining rcsid.espie1-8/+1
2004-10-07Kill register and fix some whilespace goofs in a do {} while loop.millert1-12/+11
2004-05-18ansify function definitions and zap some `register'jfb1-67/+23
2003-06-25protosderaadt1-3/+3
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert1-6/+2
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>todd1-2/+2
2002-05-24try to use strlcpy and snprintf more; ok variousderaadt1-2/+2
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert1-5/+5
2002-02-16Part 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.millert1-16/+16
2001-04-05remove extra continue statementsderaadt1-11/+17
2001-04-02use a len in g_Ctoc, easier code; freebsdderaadt1-21/+18
2001-03-28Fix some glob defects:millert1-29/+56
2001-03-28must spec +1 in this one case...deraadt1-2/+2
2001-03-28avoid g_Ctoc() overflows; art@ okderaadt1-14/+26
2001-03-28KNFderaadt1-31/+12
2001-03-19set gl_pathv to NULL after we free it; christos@netbsd.orgmillert1-2/+5
2001-03-18GLOB_LIMIT changes from christosderaadt1-22/+38
1998-08-14realloc repairderaadt1-2/+5
1998-01-31Add GLOB_NOESCAPE to turn off backslash escaping and make backslash escapingmillert1-5/+5
1997-09-01Make glob(3) XPG4.2 compliant. This means changing GLOB_ABEND tomillert1-10/+14
1997-04-12Different fix for buffer overflow. From Keith Bostic <bostic@bostic.com>millert1-35/+39
1996-10-27be careful in the non-setuid case too, what the heckderaadt1-1/+4
1996-09-11protect $HOME expansion; from das33@cornell.eduderaadt1-2/+2
1996-08-19Fix RCS idstholo1-7/+1
1995-10-18initial import of NetBSD treederaadt1-0/+852