[Toybox] [PATCH] Fix find(1) after c26870dab3462c6176936384b090df6b9ba46dee.

enh enh at google.com
Wed Aug 28 14:41:08 PDT 2019


Unlike ls, find does treat ENOENT specially. Add an extra test (and fix
the behavior) for the case of ENOENT for a path provided on the command
line --- unlike other ENOENT cases (typically dangling symlinks), ENOENT
for a command line argument should report an error.

Also remove obsolete `|sed` from the symlink loop test.
---
 tests/find.test   | 8 +++++++-
 toys/posix/find.c | 8 ++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-find-1-after-c26870dab3462c6176936384b090df6b9ba.patch
Type: text/x-patch
Size: 2473 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190828/91a56e45/attachment.bin>


More information about the Toybox mailing list