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:
parent
9b2d210438
commit
cf599562fa
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user