summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-01 17:46:06 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-02 10:43:41 -0500
commit70fadadf1fc7e1bd09c3d0f451614a678277409c (patch)
tree92ffc1ae7b3ce13a93b6a85330b0615c52484786 /parse.c
parentb997ddf3df6535765f7eab0683eae4703933a703 (diff)
downloadbfs-70fadadf1fc7e1bd09c3d0f451614a678277409c.tar.xz
Add -gid and -uid support.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 6983f16..d53a08b 100644
--- a/parse.c
+++ b/parse.c
@@ -409,6 +409,10 @@ static expression *parse_literal(parser_state *state) {
return new_test_idata(state, eval_access, X_OK);
} else if (strcmp(arg, "-false") == 0) {
return &expr_false;
+ } else if (strcmp(arg, "-gid") == 0) {
+ return parse_test_icmp(state, arg, eval_gid);
+ } else if (strcmp(arg, "-uid") == 0) {
+ return parse_test_icmp(state, arg, eval_uid);
} else if (strcmp(arg, "-hidden") == 0) {
return new_test(state, eval_hidden);
} else if (strcmp(arg, "-nohidden") == 0) {