svn commit: r263244 - head/usr.bin/find
Jilles Tjoelker
jilles at FreeBSD.org
Sun Mar 16 14:42:58 UTC 2014
Author: jilles
Date: Sun Mar 16 14:42:58 2014
New Revision: 263244
URL: http://svnweb.freebsd.org/changeset/base/263244
Log:
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
Modified:
head/usr.bin/find/function.c
Modified: head/usr.bin/find/function.c
==============================================================================
--- head/usr.bin/find/function.c Sun Mar 16 14:21:09 2014 (r263243)
+++ head/usr.bin/find/function.c Sun Mar 16 14:42:58 2014 (r263244)
@@ -1774,6 +1774,7 @@ f_false(PLAN *plan __unused, FTSENT *ent
int
f_quit(PLAN *plan __unused, FTSENT *entry __unused)
{
+ finish_execplus();
exit(0);
}
More information about the svn-src-all
mailing list