From b602f1c1513328fe91f70233c78d11d9e638982d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 20 May 2016 14:28:13 -0500 Subject: Add bufgetgrgid() --- toys/posix/find.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys/posix/find.c') 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; -- cgit v1.2.3