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);
 }
 
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to