summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/find.h
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2006-05-14 20:23:01 +0000
committerkrion <krion@FreeBSD.org>2006-05-14 20:23:01 +0000
commit1076011263cd5794f112caf825f49bdf11027532 (patch)
tree349cde92880cada6ae50eb2f1d12fbfd74df1464 /usr.bin/find/find.h
parente2f88f3971f0d26f104b1b97f27675f57c6182b9 (diff)
downloadFreeBSD-src-1076011263cd5794f112caf825f49bdf11027532.zip
FreeBSD-src-1076011263cd5794f112caf825f49bdf11027532.tar.gz
The last execution of -exec {} + is not done if the -exec primary is
not on the top-level -and sequence, e.g. inside of ! or -or. Create a separate linked list of all active -exec {} + primaries and do the last execution for all at termination. PR: bin/79263 Submitted by: Jilles Tjoelker <jilles@stack.nl> MFC after: 7 days
Diffstat (limited to 'usr.bin/find/find.h')
-rw-r--r--usr.bin/find/find.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/find/find.h b/usr.bin/find/find.h
index 7f1acaf..c7366fa 100644
--- a/usr.bin/find/find.h
+++ b/usr.bin/find/find.h
@@ -105,6 +105,7 @@ typedef struct _plandata {
int _e_psize; /* number of bytes of args. */
int _e_pbsize; /* base num. of bytes of args */
int _e_psizemax; /* max num. of bytes of args */
+ struct _plandata *_e_next;/* next F_EXECPLUS in tree */
} ex;
char *_a_data[2]; /* array of char pointers */
char *_c_data; /* char pointer */
@@ -135,6 +136,7 @@ typedef struct _plandata {
#define e_psize p_un.ex._e_psize
#define e_pbsize p_un.ex._e_pbsize
#define e_psizemax p_un.ex._e_psizemax
+#define e_next p_un.ex._e_next
typedef struct _option {
const char *name; /* option name */
OpenPOWER on IntegriCloud