diff options
author | Rob Landley <rob@landley.net> | 2016-05-20 14:28:13 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-05-20 14:28:13 -0500 |
commit | b602f1c1513328fe91f70233c78d11d9e638982d (patch) | |
tree | dd0b209caa1d5027f56bccf2b8364cabbfa20570 /toys/posix/find.c | |
parent | 9cfdb48722cba8bfaafee9de61411618d66365f3 (diff) | |
download | toybox-b602f1c1513328fe91f70233c78d11d9e638982d.tar.gz |
Add bufgetgrgid()
Diffstat (limited to 'toys/posix/find.c')
-rw-r--r-- | toys/posix/find.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/find.c b/toys/posix/find.c index 3b27225d..189773c3 100644 --- a/toys/posix/find.c +++ b/toys/posix/find.c @@ -303,9 +303,9 @@ static int do_find(struct dirtree *new) if (check) do_print(new, s[5] ? 0 : '\n'); } else if (!strcmp(s, "nouser")) { - if (check) if (getpwuid(new->st.st_uid)) test = 0; + if (check) if (bufgetpwuid(new->st.st_uid)) test = 0; } else if (!strcmp(s, "nogroup")) { - if (check) if (getgrgid(new->st.st_gid)) test = 0; + if (check) if (bufgetgrgid(new->st.st_gid)) test = 0; } else if (!strcmp(s, "prune")) { if (check && S_ISDIR(new->st.st_mode) && !TT.depth) recurse = 0; |