diff options
Diffstat (limited to 'usr.bin/find/function.c')
-rw-r--r-- | usr.bin/find/function.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index 1de472b..522d27e 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -557,8 +557,6 @@ f_flags(plan, entry) /* note that plan->fl_flags always is a subset of plan->fl_mask */ return (flags & plan->fl_mask) == plan->fl_flags; - else if (plan->flags & F_ANY) - return flags & plan->fl_mask; else return flags == plan->fl_flags; /* NOTREACHED */ @@ -1012,6 +1010,8 @@ f_perm(plan, entry) (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO); if (plan->flags & F_ATLEAST) return (plan->m_data | mode) == mode; + else if (plan->flags & F_ANY) + return (mode & plan->m_data); else return mode == plan->m_data; /* NOTREACHED */ |