summaryrefslogtreecommitdiff
path: root/lib/fts-cycle.c
AgeCommit message (Collapse)Author
2006-03-12(leave_dir): If cycle-check's saved dev-ino pair matchesJim Meyering
that of the current directory (which we're about to chdir ".." out of), then save the dev-ino of the parent, instead.
2005-09-27[HAVE_CONFIG_H]: Include <config.h>.Jim Meyering
2005-08-12(setup_dir, enter_dir, leave_dir, free_dir):Jim Meyering
Use the hash-table-based cycle-detection code not just when FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL. Reported by James Youngman in <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
2005-05-21fix typo in a commentJim Meyering
2005-05-20New file, containing GPL'ed code migrated out ofPaul Eggert
fts.c, with the following changes: (setup_dir, free_dir): New functions. (enter_dir): Now returns bool. Return true if successful, false if memory exhausted. All callers changed. Do not bother partly cleaning up on memory allocation failure; that is free_dir's job. However, free ad if hash_insert fails, to avoid memory leak. (enter_dir, leave_dir): Accommodate change to FTS by inspecting fts->fts_options to see which union member to use.