summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-04-05 20:05:50 +0000
committerjilles <jilles@FreeBSD.org>2014-04-05 20:05:50 +0000
commitaf95ef01bba17e6f6923bab19f2ac00d8b037d0b (patch)
treed267544874234e01e50aa32de8437d15ee125c0e
parentb37f0c842bea0bfc910e31fe1a844c63b9226973 (diff)
downloadFreeBSD-src-af95ef01bba17e6f6923bab19f2ac00d8b037d0b.zip
FreeBSD-src-af95ef01bba17e6f6923bab19f2ac00d8b037d0b.tar.gz
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.
-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 9f15675..f621608 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -1768,6 +1768,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