kern/59962: libc error when using nis passwd.adjunct
rafan at infor.org
rafan at infor.org
Mon Jan 12 02:20:17 PST 2004
The following reply was made to PR kern/59962; it has been noted by GNATS.
From: rafan at infor.org
To: freebsd-gnats-submit at FreeBSD.org, ggomez at fing.edu.uy
Cc: nectar at freebsd.org, ggomez at fing.edu.uy
Subject: Re: kern/59962: libc error when using nis passwd.adjunct
Date: Mon, 12 Jan 2004 18:12:52 +0800 (CST)
First, I coundn't make the test program sigsegv on my 5.2-RELEASE/i386 box.
However, this following program does SIGSEGV on my box,
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>
int
main(void)
{
struct passwd *pw;
while ((pw = getpwent()) != NULL)
printf("%s\n", pw->pw_name);
return 0;
}
This code segment is like some lines in top(1), so top(1) also
SIGSEGV. As a notice, if you run this program or top(1) with root
than you won't have SIGSEGV. My NIS server also supports passwd.adjunct.byname
map (server is a FreeBSD box).
I've tried the patch original attached, it's ok. If you want to ask me
to do any test on my box, just tell me. Finally, I do consider this is
a serious bug, so please fix it ASAP, thanks.
More information about the freebsd-bugs
mailing list