From cf599562fa96bd4e21b6ee07195895a2469a9127 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 16 Mar 2014 14:42:58 +0000 Subject: [PATCH] find: When performing -quit, finish pending -exec ... + command lines. This avoids unexpected partial processing when a find command uses both -quit and -exec ... +. GNU find does the same. MFC after: 1 week --- usr.bin/find/function.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index a71369b5db7..32c8220f54e 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -1774,6 +1774,7 @@ f_false(PLAN *plan __unused, FTSENT *entry __unused) int f_quit(PLAN *plan __unused, FTSENT *entry __unused) { + finish_execplus(); exit(0); }