]> git.ipfire.org Git - thirdparty/coreutils.git/commit
New file, containing GPL'ed code migrated out of
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 May 2005 22:32:50 +0000 (22:32 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 May 2005 22:32:50 +0000 (22:32 +0000)
commit42aab6b2ae52fe33588bc91e857d0ae2dfa02a5b
treeed8593da709b26255fdafce78ecf310196882929
parentca88d7c411600e2f17abe138cd9292a8dc25eea5
New file, containing GPL'ed code migrated out of
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.
lib/fts-cycle.c [new file with mode: 0644]