From: Rishi k. K R. <ris...@us...> - 2010-02-15 09:08:53
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/mknod In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv28705/testcases/kernel/syscalls/mknod Modified Files: mknod02.c Log Message: >From dd04033034f9e550029178f9d85c95f411ef1009 Mon Sep 17 00:00:00 2001 From: gcooper <gcooper@orangebox.(none)> Date: Sun, 14 Feb 2010 23:16:22 -0800 Subject: [PATCH 1/1] Correct at least one of these lousy diagnostic messages for not finding nobody in /etc/passwd... Signed-off-by: Garrett Cooper <yan...@gm...> Index: mknod02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/mknod/mknod02.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** mknod02.c 23 Mar 2009 13:35:54 -0000 1.7 --- mknod02.c 15 Feb 2010 09:08:44 -0000 1.8 *************** *** 245,249 **** /* Get the uid/gid of ltpuser */ if ((user1 = getpwnam(LTPUSER)) == NULL) { ! tst_brkm(TBROK, cleanup, "%s not in /etc/passwd", LTPUSER); } user1_uid = user1->pw_uid; --- 245,250 ---- /* Get the uid/gid of ltpuser */ if ((user1 = getpwnam(LTPUSER)) == NULL) { ! tst_brkm(TBROK | TERRNO, cleanup, ! "Couldn't determine if %s was in /etc/passwd", LTPUSER); } user1_uid = user1->pw_uid; |