On Thu, Mar 11, 2021 at 06:19:46AM -0500, Viktor Dukhovni wrote: > 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: [...] > To experiment with other group names and make sure that at least > group "root" or similar works, a slightly extended version is: [...]
I'm not really following the details, but is this useful to you? % cat g.c && cc g.c -o g && ./g #include <sys/types.h> #include <grp.h> #include <errno.h> #include <stdio.h> int main(int argc, char **argv) { char buf[1024]; struct group g, *p; int rc; errno = 0; rc = getgrnam_r(argc > 1 ? argv[1] : "nosuchgrouphere", &g, buf, sizeof(buf), &p); printf("%s(%p) %m(%d)\n", p ? g.gr_name : NULL, p, errno); return (rc == 0 && p == NULL); } (null)((nil)) No such process(3) _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs