lkml.org 
[lkml]   [1998]   [Mar]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateWed, 18 Mar 1998 07:38:22 -0500 (EST)
From"Steven N. Hirsch" <>
SubjectNFS & NGROUPS (revisited)
All,

My apologies for an earlier, misleading, patch.  The real problem behind
my NFS client problems seems to be this:

--- linux/kernel/sys.c.orig	Mon Mar 16 07:17:16 1998
+++ linux/kernel/sys.c	Wed Mar 18 07:25:31 1998
@@ -721,6 +721,8 @@
 		return -EINVAL;
 	if(copy_from_user(current->groups, grouplist, gidsetsize * sizeof(gid_t)))
 		return -EFAULT;
+	if (gidsetsize < NGROUPS)
+		current->groups[gidsetsize] = NOGROUP;
 	current->ngroups = gidsetsize;
 	return 0;
 }

The question is:  Why wasn't the lack of a terminator for the task_struct
groups list causing more problems?  The logic I inserted had existed in
the 2.0.x kernels.

Steve



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.083 / U:0.130 seconds]
©2003-2008 Jasper Spaans