diff options
author | Robin Hsu <robinhsu@google.com> | 2021-03-11 18:50:38 +0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-03-12 02:44:53 -0600 |
commit | 56ef8fcedc48bed353e3ccc694a8db3f322fae6f (patch) | |
tree | 1040270be276135424a3b4e9d4daba33598e0695 /toys/android/README | |
parent | 8c2825c496ae4fb91483dee68d5c171ba6c0fd77 (diff) | |
download | toybox-56ef8fcedc48bed353e3ccc694a8db3f322fae6f.tar.gz |
Fix grep bug testing errno before check status
It's legal for a system call to set non-zero errno and return a good
status. The caller (grep) should check return status first.
Test: 2000 loops of greping 1000+ lines each loop
Signed-off-by: Robin Hsu <robinhsu@google.com>
Change-Id: I55f7cd5d8a6289c5e8a21ed3057e995a75b9b4fa
Diffstat (limited to 'toys/android/README')
0 files changed, 0 insertions, 0 deletions