From 296386e5335b82bd544bdc13c43ab81ec258af08 Mon Sep 17 00:00:00 2001 From: jilles Date: Fri, 18 Apr 2014 14:59:39 +0000 Subject: [PATCH] MFC r263244: 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. git-svn-id: svn://svn.freebsd.org/base/stable/9@264647 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- 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 412d3b377..940fa5a57 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -1705,6 +1705,7 @@ f_false(PLAN *plan __unused, FTSENT *entry __unused) int f_quit(PLAN *plan __unused, FTSENT *entry __unused) { + finish_execplus(); exit(0); } -- 2.45.0