[Toybox] [PATCH] xargs: "proper" fix for E2BIG.

enh enh at google.com
Tue Oct 22 13:20:21 PDT 2019


This change switches xargs over to correct accounting of space, and
differentiating between the -s limit (which doesn't include the (char *)
overhead) and the kernel limit (which does).

I've added the two easy repro cases (at least for my desktop and
laptop), but left them commented out since they're a bit questionable as
tests.
---
 tests/xargs.test   |  6 ++++++
 toys/posix/xargs.c | 38 ++++++++++++++++++++++++--------------
 2 files changed, 30 insertions(+), 14 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xargs-proper-fix-for-E2BIG.patch
Type: text/x-patch
Size: 5149 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20191022/e6503c48/attachment-0002.bin>


More information about the Toybox mailing list