summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-03-16 14:42:58 +0000
committerjilles <jilles@FreeBSD.org>2014-03-16 14:42:58 +0000
commitec85a8a4808f6cd93e4262a64db535af592dcfe4 (patch)
treeae2806d8fe8756dfafd632487c3497c01200f283 /usr.bin
parent47e8ffc6b79176921802c80e66d54ef84bc29746 (diff)
downloadFreeBSD-src-ec85a8a4808f6cd93e4262a64db535af592dcfe4.zip
FreeBSD-src-ec85a8a4808f6cd93e4262a64db535af592dcfe4.tar.gz
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
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/find/function.c1
1 files changed, 1 insertions, 0 deletions
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);
}
OpenPOWER on IntegriCloud