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
This commit is contained in:
Jilles Tjoelker 2014-03-16 14:42:58 +00:00
parent 9b2d210438
commit cf599562fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263244

View File

@ -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);
}