The following patch is for testcases/kernel/syscalls/open/open10.c

Ubuntu (and I believe, Debian) does not have a nobody group and the program fails to run. I added some lines instead to test for "nogroup" instead which I believe is Debian's equivalent and must do what the program is intended to.

Regards.

Elder.
--- open10.c.ORIG	2006-02-11 02:46:37.000000000 -0200
+++ open10.c	2008-09-23 17:23:16.000000000 -0300
@@ -157,8 +157,10 @@
 		 * Get the group IDs of group1 and group2. 
 		 */
 		if ((group = getgrnam("nobody")) == NULL) {
-			tst_resm(TBROK, "nobody not in /etc/group");
-			tst_exit();
+			if ((group = getgrnam("nogroup")) == NULL) {
+				tst_resm(TBROK, "nobody/nogroup not in /etc/group");
+				tst_exit();
+			}
 		}
 		group1_gid = group->gr_gid;
 		if ((group = getgrnam("bin")) == NULL) {
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to