summaryrefslogtreecommitdiff
path: root/lib/libc/gen/fts.c
AgeCommit message (Expand)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2017-03-17recallocarray() the string buffer, to avoid leaving such contentsTheo de Raadt
2017-02-15Style improvement, no functional change.Ingo Schwarze
2016-09-21Delete casts to off_t and size_t that are implied by assignmentsPhilip Guenther
2016-06-28fts_open() requires that the list passed as argument to contain at leastTodd C. Miller
2016-06-28Do not return an error in fts_open(3) if one of the paths in argvTodd C. Miller
2015-11-01delete old lint ARGSUSED commentsPhilip Guenther
2015-09-14remove null check before free. from Michael McConvilleTed Unangst
2015-09-12Wrap <fts.h> and <ftw.h> so that internal calls to fts_*() go direct andPhilip Guenther
2015-01-16Move to the <limits.h> universe.Theo de Raadt
2014-11-23Merge from FreeBSD:Philip Guenther
2014-11-20Merge from FreeBSD:Philip Guenther
2014-10-08reallocarray() for mult int overflow detect; ok dougTheo de Raadt
2014-05-25use calloc, from Benjamin BaierTed Unangst
2013-09-30Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,Todd C. Miller
2010-09-24Bump fts_level from short to int and add a spare short so thingsTodd C. Miller
2009-08-27Don't stop traversing a directory hierarchy if we reach SHRT_MAX,Todd C. Miller
2009-02-11Avoid level going negative on deep (i mean really deep) dirs. ReportedOtto Moerbeek
2008-12-27Fix file descriptor leak in fts_children(); okay dhill@, millert@,Pedro Martelletto
2007-11-06malloc/memset -> callocCharles Longeau
2007-11-02Simplify some of the logic in fts_close(). Initially based on aTodd C. Miller
2007-01-08fix mem leak, from NetBSD; ok miod@ kettenis@Otto Moerbeek
2005-08-08zap remaining rcsid.Marc Espie
2005-06-17bye bye whiteoutsTodd C. Miller
2005-06-16bye bye whiteoutsTodd C. Miller
2003-06-11ansification; checked by pvalTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2002-07-12Add a missing check for fts_alloc() returning NULL; Chad LoderTodd C. Miller
2002-06-27%uTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-08-27Zero out entire FTS after allocating it instead of just zeroing outTodd C. Miller
2001-08-03Update sp->fts_cur in fts_read() before returning NULL. ThisTodd C. Miller
2001-05-31Fix another case of CHDIR("..") pointed out by Bruce EvansTodd C. Miller
2001-05-30When changing directory to '..', verify that we really are whereTodd C. Miller
2001-05-15Make path length variables size_t. This fixes the problem whereTodd C. Miller
2000-08-24KNFTheo de Raadt
1999-10-03put back FTS_CHDIRROOT until next library major number crankTodd C. Miller
1999-10-03kill FTS_CHDIRROOT flag, it is broken beyond repair and no longer usedTodd C. Miller
1999-10-03Fix multiple problems in the FTS_NOCHDIR case (mycroft@netbsd.org):Todd C. Miller
1999-08-16If the FTS_NOCHDIR flag is set and the final directory is empty,Todd C. Miller
1999-05-171) Only do pointer adjusting if realloc() changed our pointerTodd C. Miller
1998-08-15fix realloc patchTheo de Raadt
1998-08-14realloc repairTheo de Raadt
1998-07-03do not free() before last ref; kmayer@freegate.comTheo de Raadt
1998-03-19some -WallTodd C. Miller
1997-10-11Replace my trailing slash removal with the one from FreeBSD.Todd C. Miller
1997-10-06Fix bug caused by trailing '/' stripping. Didn't always guarantee NULLTodd C. Miller
1997-09-20Strip trailing '/' from paths. Noted by hermit@cs.tu-berlin.de inTodd C. Miller
1997-09-01Fix problem with ``find -execdir'' not having the correct initial cwd.Todd C. Miller
1997-08-29Minor KNF changes to fts_safe_chdir and recent NetBSD code integrationimp