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

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