diff options
author | jilles <jilles@FreeBSD.org> | 2014-03-16 14:42:58 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2014-03-16 14:42:58 +0000 |
commit | ec85a8a4808f6cd93e4262a64db535af592dcfe4 (patch) | |
tree | ae2806d8fe8756dfafd632487c3497c01200f283 /usr.bin/find | |
parent | 47e8ffc6b79176921802c80e66d54ef84bc29746 (diff) | |
download | FreeBSD-src-ec85a8a4808f6cd93e4262a64db535af592dcfe4.zip FreeBSD-src-ec85a8a4808f6cd93e4262a64db535af592dcfe4.tar.gz |
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
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 a71369b..32c8220 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -1774,6 +1774,7 @@ f_false(PLAN *plan __unused, FTSENT *entry __unused) int f_quit(PLAN *plan __unused, FTSENT *entry __unused) { + finish_execplus(); exit(0); } |