diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-27 13:39:42 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-05-27 14:04:39 -0400 |
commit | 470589cbd9ca3e73d8c01ac3a96cbc065179dcc5 (patch) | |
tree | 71a86e212ce58e3dc9fb5e6c1f25d895ec488983 /tests/bfs | |
parent | f095481862ccd175d297da67d0e313d135bd75c3 (diff) | |
download | bfs-470589cbd9ca3e73d8c01ac3a96cbc065179dcc5.tar.xz |
bfstd: Treat ELOOP like ENOENT
GNU findutils just made the same change, so looping symlinks will be
considered broken rather than a hard error.
Link: https://savannah.gnu.org/bugs/?51926
Diffstat (limited to 'tests/bfs')
-rw-r--r-- | tests/bfs/xtype_depth.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/bfs/xtype_depth.sh b/tests/bfs/xtype_depth.sh index 02c8173..93c4fb7 100644 --- a/tests/bfs/xtype_depth.sh +++ b/tests/bfs/xtype_depth.sh @@ -1,2 +1,9 @@ +cd "$TEST" +"$XTOUCH" -p foo/bar +ln -s foo/bar baz + +chmod a-rx foo +defer chmod +rx foo + # Make sure -xtype is considered side-effecting for facts_when_impure -! invoke_bfs loops -xtype l -depth 100 +! invoke_bfs . -xtype l -depth 100 |