diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-06-03 18:30:09 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-06-03 18:30:09 -0400 |
commit | 9e408d4bb50cb7c4e9d0a007b95f9fb9d32a16d0 (patch) | |
tree | 582082976f6d971928ccaed37e11d616e5378a98 /tests | |
parent | 6e4c3893ae4e053d571ee538f8b4dc4e6cfce658 (diff) | |
download | bfs-3.3.1.tar.xz |
Make ELOOP an error again, except for -xtype.3.3.1
POSIX requires an error if (for example) -L encounters a symlink loop.
The GNU find change was restricted to -xtype, so add a manual ELOOP test
to eval_xtype() for compatibility.
This reverts commit 470589cbd9ca3e73d8c01ac3a96cbc065179dcc5.
Link: https://savannah.gnu.org/bugs/?19605
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gnu/L_loops_continue.out | 1 | ||||
-rw-r--r-- | tests/gnu/ignore_readdir_race_loop.out | 1 | ||||
-rw-r--r-- | tests/gnu/xtype_l_loops.out | 3 | ||||
-rw-r--r-- | tests/gnu/xtype_l_loops.sh | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/tests/gnu/L_loops_continue.out b/tests/gnu/L_loops_continue.out index faf33d3..a514555 100644 --- a/tests/gnu/L_loops_continue.out +++ b/tests/gnu/L_loops_continue.out @@ -4,7 +4,6 @@ loops/deeply loops/deeply/nested loops/deeply/nested/dir loops/file -loops/loop loops/notdir loops/skip loops/skip/dir diff --git a/tests/gnu/ignore_readdir_race_loop.out b/tests/gnu/ignore_readdir_race_loop.out index faf33d3..a514555 100644 --- a/tests/gnu/ignore_readdir_race_loop.out +++ b/tests/gnu/ignore_readdir_race_loop.out @@ -4,7 +4,6 @@ loops/deeply loops/deeply/nested loops/deeply/nested/dir loops/file -loops/loop loops/notdir loops/skip loops/skip/dir diff --git a/tests/gnu/xtype_l_loops.out b/tests/gnu/xtype_l_loops.out new file mode 100644 index 0000000..fdaccab --- /dev/null +++ b/tests/gnu/xtype_l_loops.out @@ -0,0 +1,3 @@ +loops/broken +loops/loop +loops/notdir diff --git a/tests/gnu/xtype_l_loops.sh b/tests/gnu/xtype_l_loops.sh new file mode 100644 index 0000000..6893134 --- /dev/null +++ b/tests/gnu/xtype_l_loops.sh @@ -0,0 +1 @@ +bfs_diff loops -xtype l |