diff options
author | Jim Meyering <jim@meyering.net> | 2003-01-04 10:07:44 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-01-04 10:07:44 +0000 |
commit | 8b6b22bcefc27f212b66d9d895a1809c885ac106 (patch) | |
tree | d48f27bc68bf64350fe5f7dd770264f9bcda68ee /README-valgrind | |
parent | e2b894c771ef46729aeffa0bd05d16e1bfb731f5 (diff) | |
download | coreutils-8b6b22bcefc27f212b66d9d895a1809c885ac106.tar.xz |
rm could be tricked into mistakenly reporting a cycle.
* src/remove.c: [cycle_check_state]: New global.
(remove_cwd_entries): Adapt to new semantics of cycle_check.
(rm): Call cycle_check_init and cycle_check_free for each file.
When rm detects a cycle, don't abort the entire command,
but rather just the affected command line argument.
* src/remove.c: Include <setjmp.h>
(struct dirstack_state) [current_arg_jumpbuf]: New member.
(remove_cwd_entries): Call longjmp if we detect a cycle.
(rm): Call setjmp here.
* src/remove.c (cycle_check, is_power_of_two): Remove functions.
Instead, include cycle-check.h and use it.
Diffstat (limited to 'README-valgrind')
0 files changed, 0 insertions, 0 deletions