diff options
author | Vidar Holen <spam@vidarholen.net> | 2019-03-25 14:44:58 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-03-25 20:59:44 -0500 |
commit | 44dd6dd6520430b677ab97e886e8317490f04355 (patch) | |
tree | 36cecf467fc6da70e3103b547d67e8a9c720b19e /scripts | |
parent | 79dc2434cb8d39213b24b89f6c618174d8e9cbd4 (diff) | |
download | toybox-44dd6dd6520430b677ab97e886e8317490f04355.tar.gz |
find: fix inverted -exec exit status
The return value of -exec was the command's exit code, which did not
account for the fact that an exit code of zero means success, while in
C, zero means failure. From POSIX:
> the primary shall evaluate as true if the utility returns a zero
> value as exit status
This commit flips the return value, and adds two tests.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions