On Wed, Jun 21, 2006 at 05:15:36PM +0200, [EMAIL PROTECTED] wrote:
> On 16:30:56 21/06/06 Javier  Fernández-Sanguino Peña  <[EMAIL PROTECTED]>
> wrote:
> 
> > It lookis like its the libc that's segfaulting, not runas. Could you
> > please use ltrace (instead of strace) to debug it and send me the
> > output?
> 
> sure, it's pretty short:

It definitely looks like the problem is with the libc, could you please
compile  ('gcc -Wall -g -o test-group test-group.c') and run the attached
program with './test-group svn svn'? If it segfaults, please send me a
backtrace running it with gdb.

If this segfaults then I believe the bug is in your side of the line or
it resides in libc.

Regards

Javier
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <pwd.h>
#include <grp.h>


int main(argc, argv, envp)
	int     argc;
	char  **argv;
	char  **envp;
{
	if ( argc < 3 ) {
	         fprintf(stderr, "Introduce a group name\n");
		 exit(1);
	}
	printf("Checking group %s\n", argv[2]);
       if ( getgrnam(argv[2]) == NULL) {
	         fprintf(stderr, "Invalid group name: %s\n", argv[2]);
		 exit(1);
	}
	exit (0);
}

Attachment: signature.asc
Description: Digital signature

Reply via email to