svn commit: r264169 - stable/10/usr.bin/find
Jilles Tjoelker
jilles at FreeBSD.org
Sat Apr 5 20:05:50 UTC 2014
Author: jilles
Date: Sat Apr 5 20:05:50 2014
New Revision: 264169
URL: http://svnweb.freebsd.org/changeset/base/264169
Log:
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.
Modified:
stable/10/usr.bin/find/function.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/usr.bin/find/function.c
==============================================================================
--- stable/10/usr.bin/find/function.c Sat Apr 5 20:01:08 2014 (r264168)
+++ stable/10/usr.bin/find/function.c Sat Apr 5 20:05:50 2014 (r264169)
@@ -1768,6 +1768,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-stable
mailing list