diff options
author | Elliott Hughes <enh@google.com> | 2019-08-06 13:21:21 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-08-09 20:35:09 -0500 |
commit | 99cfd03d8576de6ac760269f66eb37e3c732243f (patch) | |
tree | 57baaa5f094bed7fb644dc7a33a15ffdf96aacb3 /tests | |
parent | 5fbdad94ac145c59308200d689eea40e79a7ec5e (diff) | |
download | toybox-99cfd03d8576de6ac760269f66eb37e3c732243f.tar.gz |
find: fix dangling symlink behavior.
ENOENT is ignored, but other errors are reported.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/find.test | 4 |
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" "" "" |