[Toybox] [PATCH] xargs: fix -E.

enh enh at google.com
Fri Oct 18 17:22:47 PDT 2019


89a8d00e470f1999a62ceea81269af2f39c655ba broke -E by switching to a
prefix match. Add the missing test and fix the bug, but caching the
length of the -E argument because the call to strlen(3) on every single
piece of input presumably motivated the change that introduced the bug.
---
 tests/xargs.test   | 2 +-
 toys/posix/xargs.c | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xargs-fix-E.patch
Type: text/x-patch
Size: 2022 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20191018/a61ed7d7/attachment-0002.bin>


More information about the Toybox mailing list