From ec85a8a4808f6cd93e4262a64db535af592dcfe4 Mon Sep 17 00:00:00 2001 From: jilles Date: Sun, 16 Mar 2014 14:42:58 +0000 Subject: 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(+) (limited to 'usr.bin') diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index a71369b..32c8220 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); } -- cgit v1.1