Re: [LTP] facing issue "TBROK : nobody not in /etc/passwd"

2010-02-15 Thread Garrett Cooper
On Mon, Feb 15, 2010 at 11:25 PM, vishwanath govind wrote: > I have initramfs file system built using Busybox-1.16.0 and didn't setup the > ldap/nis. I have few files in /etc like passwd,group and syslogd conf > files.But getpwnam() should search local repository(/etc/passwd file) and > returns a

Re: [LTP] facing issue "TBROK : nobody not in /etc/passwd"

2010-02-15 Thread vishwanath govind
I have initramfs file system built using Busybox-1.16.0 and didn't setup the ldap/nis. I have few files in /etc like passwd,group and syslogd conf files.But getpwnam() should search local repository(/etc/passwd file) and returns a pointer to a *struct passwd*, correct?. Do i really need to setup ld

Re: [LTP] [PATCH] fix buffer overflow in sem_getvalue tests

2010-02-15 Thread Cyril Hrubis
Hi! > > Attached patch fixes possible buffer oveflow in sem_getvalue tests (the > > buffer > > overflow happens when getpid() returns number that couldn't fit into buffer) > > and also cleans coding style. > > 1. Why 64? > 2. It should be #define'd and/or sizeof should be used in snprintf > becau

Re: [LTP] facing issue "TBROK : nobody not in /etc/passwd"

2010-02-15 Thread Garrett Cooper
On Sun, Feb 14, 2010 at 11:59 PM, vishwanath govind wrote: > Yes, I checked this before, It return errorno "0". Somehow mknod02 won't > display the errorno when it exit with "tst_brkm(TBROK, cleanup, "%s not in > /etc/passwd", LTPUSER)" but I have similar tests return errorno 0. I see > "nobody" u

Re: [LTP] facing issue "TBROK : nobody not in /etc/passwd"

2010-02-15 Thread vishwanath govind
Yes, I checked this before, It return errorno "0". Somehow mknod02 won't display the errorno when it exit with "tst_brkm(TBROK, cleanup, "%s not in /etc/passwd", LTPUSER)" but I have similar tests return errorno 0. I see "nobody" user and uid/gid -99 is present in /etc/passwd file. Do I need to en