diff options
author | imp <imp@FreeBSD.org> | 1997-08-29 23:09:45 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-08-29 23:09:45 +0000 |
commit | 56b404f65654839109645ac527c0d0acf275b04c (patch) | |
tree | 365ffa0f00528b6fac7535e6d5311ebf1525d71d /usr.bin/find/find.h | |
parent | 02b5c984e21a8588a1a2f2d3870e16bd8ab7be2e (diff) | |
download | FreeBSD-src-56b404f65654839109645ac527c0d0acf275b04c.zip FreeBSD-src-56b404f65654839109645ac527c0d0acf275b04c.tar.gz |
Add -execdir which will execute the exec command in the dir of the file
in question. This change and the fts changes should be merged into 2.2-stable
as soon as they are vetted in -current. This should allow cleaning of files
in /tmp to be reneabled.
Obtained from: OpenBSD
Diffstat (limited to 'usr.bin/find/find.h')
-rw-r--r-- | usr.bin/find/find.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/find/find.h b/usr.bin/find/find.h index ff007e7..349883a 100644 --- a/usr.bin/find/find.h +++ b/usr.bin/find/find.h @@ -39,9 +39,9 @@ /* node type */ enum ntype { N_AND = 1, /* must start > 0 */ - N_ATIME, N_CLOSEPAREN, N_CTIME, N_DEPTH, N_EXEC, N_EXPR, N_FOLLOW, - N_FSTYPE, N_GROUP, N_INUM, N_LINKS, N_LS, N_MTIME, N_NAME, N_NEWER, - N_NOGROUP, N_NOT, N_NOUSER, N_OK, N_OPENPAREN, N_OR, N_PATH, + N_ATIME, N_CLOSEPAREN, N_CTIME, N_DEPTH, N_EXEC, N_EXECDIR, N_EXPR, + N_FOLLOW, N_FSTYPE, N_GROUP, N_INUM, N_LINKS, N_LS, N_MTIME, N_NAME, + N_NEWER, N_NOGROUP, N_NOT, N_NOUSER, N_OK, N_OPENPAREN, N_OR, N_PATH, N_PERM, N_PRINT, N_PRUNE, N_SIZE, N_TYPE, N_USER, N_XDEV, N_PRINT0, N_DELETE }; @@ -101,7 +101,7 @@ typedef struct _option { #define O_NONE 0x01 /* no call required */ #define O_ZERO 0x02 /* pass: nothing */ #define O_ARGV 0x04 /* pass: argv, increment argv */ -#define O_ARGVP 0x08 /* pass: *argv, N_OK || N_EXEC */ +#define O_ARGVP 0x08 /* pass: *argv, N_OK || N_EXEC || N_EXECDIR */ int flags; } OPTION; |