I'd guess it is a problem with the getgrnam function.  Does the
following command work for you?  Compile and run it with the same
options that you compiled coreutils.

If it doesn't work, then there's something messed up with your
/etc/group file, or getgrnam implementation.

If it works, but coreutils doesn't, can you investigate why?  Both of
them are trying to access the /etc/group file in the same way, as far
as I can tell.

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <grp.h>

int
main (void)
{
  struct group *g = getgrnam ("users");
  if (! g)
    abort ();
  printf ("group number = %ld\n", (long int) g->gr_gid);
  endgrent ();
  return 0;
}


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to