svn commit: r264647 - stable/9/usr.bin/find
Jilles Tjoelker
jilles at FreeBSD.org
Fri Apr 18 14:59:40 UTC 2014
Author: jilles
Date: Fri Apr 18 14:59:39 2014
New Revision: 264647
URL: http://svnweb.freebsd.org/changeset/base/264647
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/9/usr.bin/find/function.c
Directory Properties:
stable/9/usr.bin/find/ (props changed)
Modified: stable/9/usr.bin/find/function.c
==============================================================================
--- stable/9/usr.bin/find/function.c Fri Apr 18 14:21:10 2014 (r264646)
+++ stable/9/usr.bin/find/function.c Fri Apr 18 14:59:39 2014 (r264647)
@@ -1705,6 +1705,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-9
mailing list