aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-08-06 13:21:21 -0700
committerRob Landley <rob@landley.net>2019-08-09 20:35:09 -0500
commit99cfd03d8576de6ac760269f66eb37e3c732243f (patch)
tree57baaa5f094bed7fb644dc7a33a15ffdf96aacb3 /tests
parent5fbdad94ac145c59308200d689eea40e79a7ec5e (diff)
downloadtoybox-99cfd03d8576de6ac760269f66eb37e3c732243f.tar.gz
find: fix dangling symlink behavior.
ENOENT is ignored, but other errors are reported.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/find.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/find.test b/tests/find.test
index ab84fb07..cbca8e76 100755
--- a/tests/find.test
+++ b/tests/find.test
@@ -104,6 +104,10 @@ testing "-printf" "find dir -name file -printf '%f %p %P %s'" \
"file dir/file file 0" "" ""
testing "-printf .N" "find dir -name file -printf %.2f" "fi" "" ""
+ln -s does-not-exist dir/dangler
+ln -s looper dir/looper
+testing "-L dangling link" "LANG=C find -L dir -name file 2>&1 | sed s/\'//g" \
+ "dir/file\nfind: dir/looper: Too many levels of symbolic links\n" "" ""
testing "-false" "find dir -false" "" "" ""
testing "-true" "find dir/file -true" "dir/file\n" "" ""