Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2014 14:59:39 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r264647 - stable/9/usr.bin/find
Message-ID:  <201404181459.s3IExdaj096565@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404181459.s3IExdaj096565>