diff options
author | Ricardo Branco <rbranco@suse.de> | 2024-01-21 19:53:05 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2024-01-22 01:33:46 +0000 |
commit | e4b646ce16105efc943bc8ac2242a2220dfe18d8 (patch) | |
tree | be58842f0a6432709c1d7b7d8cc529e1008e3088 /usr.bin/find/option.c | |
parent | 91f78c32befa08bf4010db7afd4407277a3e585f (diff) | |
download | src-e4b646ce16105efc943bc8ac2242a2220dfe18d8.tar.gz src-e4b646ce16105efc943bc8ac2242a2220dfe18d8.zip |
find: Add -readable, -writable & -executable options
Reviewed by: jhb, Mina Galić
Pull Request: https://github.com/freebsd/freebsd-src/pull/1080
Diffstat (limited to 'usr.bin/find/option.c')
-rw-r--r-- | usr.bin/find/option.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/find/option.c b/usr.bin/find/option.c index 166fc75e9c51..99c67eed8cd9 100644 --- a/usr.bin/find/option.c +++ b/usr.bin/find/option.c @@ -75,6 +75,7 @@ static OPTION const options[] = { { "-empty", c_empty, f_empty, 0 }, { "-exec", c_exec, f_exec, 0 }, { "-execdir", c_exec, f_exec, F_EXECDIR }, + { "-executable", c_simple, f_executable, 0 }, { "-false", c_simple, f_false, 0 }, #if HAVE_STRUCT_STAT_ST_FLAGS { "-flags", c_flags, f_flags, 0 }, @@ -149,6 +150,7 @@ static OPTION const options[] = { // -printf { "-prune", c_simple, f_prune, 0 }, { "-quit", c_simple, f_quit, 0 }, + { "-readable", c_simple, f_readable, 0 }, { "-regex", c_regex, f_regex, 0 }, { "-samefile", c_samefile, f_inum, 0 }, { "-size", c_size, f_size, 0 }, @@ -158,6 +160,7 @@ static OPTION const options[] = { { "-uid", c_user, f_user, 0 }, { "-user", c_user, f_user, 0 }, { "-wholename", c_name, f_path, 0 }, + { "-writable", c_simple, f_writable, 0 }, { "-xdev", c_xdev, f_always_true, 0 }, // -xtype }; |