Put cycle-detecting code inside an
authorJim Meyering <jim@meyering.net>
Mon, 3 Nov 1997 04:22:57 +0000 (04:22 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 3 Nov 1997 04:22:57 +0000 (04:22 +0000)
commit1b3376c9dac2897bd85db895c4659572695dd9ea
tree4f65344b84c15bfa80181f96ab546be0bc865403
parent6327a7ad45af79e725e22be53bb5d99080d4c196
Put cycle-detecting code inside an
#ifdef ENABLE_CYCLE_CHECK, for systems lacking d_ino.
[D_INO_IN_DIRENT]: Define ENABLE_CYCLE_CHECK.

(ASSIGN_STRDUPA): Clean up.
(right_justify): Use memcpy return value directly.
Suggestions from Ulrich Drepper.

(remove_cwd_entries) [! defined HAVE_WORKING_READDIR]: Impose overhead
of working around non-POSIX readdir implementation only on systems
that need it.
(remove_cwd_entries): Temporarily save a copy of each entry name in
an obstack rather than on the stack via alloca, then free it in the
likely event that we don't save the entry in the hash table.
src/rm.c