Jim Meyering 0199003cf9 Remove hash table, active_dir_map, used to detect directory cycles.
Instead, detect them lazily with just O(1) memory.
Suggestion from Andi Kleen.

(is_power_of_two): New function.
(print_nth_dir, make_active_dir_ent): Remove functions.
(hash_active_dir_ent, hash_compare_active_dir_ents): Likewise.
(remove_dir): Check for cycles here, ...
(rm): ... and don't check for cycles here.

(rm): Call fspec_get_full_mode here, rather than
fspec_get_filetype_mode.  We want to get the dev/ino earlier, and
at the same time as when we get the file type, to avoid the risk
that an attacker would change e.g. a directory to a symlink before
we record its dev/ino.
2002-04-25 16:40:04 +00:00
.
2002-03-30 07:24:19 +00:00
2002-04-16 11:26:32 +00:00
.
2002-04-25 15:40:12 +00:00
2002-04-24 07:50:53 +00:00
2002-04-12 10:47:18 +00:00
2002-04-25 15:39:39 +00:00
2002-03-10 10:22:47 +00:00
2002-04-20 14:49:46 +00:00
2002-02-16 14:08:46 +00:00
2001-06-17 04:11:12 +00:00
2002-02-16 14:15:27 +00:00
2002-04-25 16:01:32 +00:00
S
Description
GNU Coreutils
GPL-3.0
48 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 55.1%
Shell 29.1%
Perl 11.6%
Makefile 2.2%
M4 0.9%
Other 1.1%