diff options
author | jilles <jilles@FreeBSD.org> | 2014-04-05 20:05:50 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2014-04-05 20:05:50 +0000 |
commit | af95ef01bba17e6f6923bab19f2ac00d8b037d0b (patch) | |
tree | d267544874234e01e50aa32de8437d15ee125c0e /usr.bin/find | |
parent | b37f0c842bea0bfc910e31fe1a844c63b9226973 (diff) | |
download | FreeBSD-src-af95ef01bba17e6f6923bab19f2ac00d8b037d0b.zip FreeBSD-src-af95ef01bba17e6f6923bab19f2ac00d8b037d0b.tar.gz |
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.
Diffstat (limited to 'usr.bin/find')
-rw-r--r-- | usr.bin/find/function.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index 9f15675..f621608 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -1768,6 +1768,7 @@ f_false(PLAN *plan __unused, FTSENT *entry __unused) int f_quit(PLAN *plan __unused, FTSENT *entry __unused) { + finish_execplus(); exit(0); } |