commit | 44dd6dd6520430b677ab97e886e8317490f04355 | [log] [tgz] |
---|---|---|
author | Vidar Holen <spam@vidarholen.net> | Mon Mar 25 14:44:58 2019 -0700 |
committer | Rob Landley <rob@landley.net> | Mon Mar 25 20:59:44 2019 -0500 |
tree | 36cecf467fc6da70e3103b547d67e8a9c720b19e | |
parent | 79dc2434cb8d39213b24b89f6c618174d8e9cbd4 [diff] |
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.