
On Thu, Mar 11, 2021 at 06:05:04AM -0500, Viktor Dukhovni wrote:
So the question is why the lookup is failing. To that end compiling a tracing with "strace" the below C program should tell the story:
#include
#include #include #include int main(int argc, char **argv) { struct group g, *p; char buf[1024]; int rc;
errno = 0; rc = getgrnam_r("nosuchgrouphere", &g, buf, sizeof(buf), &p); printf("%p: %m(%d)\n", p, errno); return (rc == 0 && p == NULL); }
To experiment with other group names and make sure that at least
group "root" or similar works, a slightly extended version is:
#include