From 2d32142041b644d2e218b1b630d2be3f6a761589 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 19 Aug 2018 13:48:01 -0500 Subject: Comment tweak. --- toys/posix/find.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys') diff --git a/toys/posix/find.c b/toys/posix/find.c index 762f89fc..faa63cae 100644 --- a/toys/posix/find.c +++ b/toys/posix/find.c @@ -500,8 +500,8 @@ static int do_find(struct dirtree *new) aa->prev = (void *)1; // Flush if the child's environment space gets too large. - // An insanely long path (>2 gigs) could wrap the counter and - // defeat this test, which could potentially trigger OOM killer. + // Linux caps individual arguments/variables at 131072 bytes, + // so this counter can't wrap. if ((aa->plus += sizeof(char *)+strlen(name)+1) > TT.max_bytes) { aa->plus = 1; toys.exitval |= flush_exec(new, aa); -- cgit v1.2.3