Date: Sun, 16 Mar 2014 14:42:58 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r263244 - head/usr.bin/find Message-ID: <201403161442.s2GEgwUT008961@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403161442.s2GEgwUT008961>