This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Fri Apr 26 18:17:12 2024 Received: from miriam.fuller.edu (miriam.fuller.edu [206.1.27.4]) by herbie.ucs.indiana.edu (8.8.5/8.8.5) with SMTP id NAA29625 for ; Fri, 9 May 1997 13:17:04 -0500 (EST) Received: from vger.rutgers.edu [128.6.190.2] (root) by miriam.fuller.edu with esmtp (Exim 1.62 #1) id 0wPu6a-00071h-00 (Debian); Fri, 9 May 1997 11:09:20 -0700 Received: by vger.rutgers.edu id <971095-32754>; Fri, 9 May 1997 14:00:55 -0400 Received: from mogwai.wohnheim.uni-ulm.de ([134.60.220.3]) by vger.rutgers.edu with ESMTP id <971085-32754>; Fri, 9 May 1997 14:00:39 -0400 Received: by mogwai.wohnheim.uni-ulm.de id m0wPt1s-00004WC (Debian Smail-3.2 1996-Jul-4 #2); Fri, 9 May 1997 19:00:24 +0200 (MET DST) Message-Id: Date: Fri, 9 May 1997 19:00:24 +0200 (MET DST) X-Newsreader: knews 0.9.8 From: widi@wohnheim.uni-ulm.de (Rainer Bawidamann) Subject: Re: groups (was: pre-patch-2.0.31?) (fwd) To: linux-kernel@vger.rutgers.edu Mime-Version: 1.0 Content-Type: message/rfc822 Content-Transfer-Encoding: 8bit Sender: owner-linux-kernel@vger.rutgers.edu Precedence: bulk Path: sol.wohnheim.uni-ulm.de!vger.rutgers.edu!owner-linux-kernel-outgoing Message-ID: Date: Thu, 8 May 1997 14:43:33 +0200 (MET DST) Mime-Version: 1.0 References: <5knh6n$udh$1@work.smurf.noris.de> From: widi@wohnheim.uni-ulm.de (Rainer Bawidamann) Subject: groups (was: pre-patch-2.0.31?) Content-Type: text/plain; charset=us-ascii Newsgroups: list.linux.kernel Distribution: local Approved: widi@sol.wohnheim.uni-ulm.de (Rainer Bawidamann) Lines: 117 Xref: sol.wohnheim.uni-ulm.de list.linux.kernel:1348 In article <199705070924.FAA04845@jenolan.caipgeneral>, davem@jenolan.rutgers.edu ("David S. Miller") writes: > It wish it was that simple for me to cook up a patch but it is not, I > would need something like: > > cvs diff -exclude-tons-of-sparc-local-hacks A propos Sparc: I still have a problem with groups on sparc-linux: I'm in several groups (/etc/group) but some of them don't work (i.e. I don't have the apropriate rights). I know this was mentioned before and I think the following code in the task_struct was blamed for it: include/linux/sched.h:203 int groups[NGROUPS]; ^^^ I think this should be "gid_t" which is unsigned short (16 bit vs. 32) Is there any reason to continue with "int"? Was this corrected in 2.1.x? Can this be changed in 2.0.31 without breaking other things? Greetings Rainer PS: The complete patch as I found it in news/kernel-list is: --- linux/kernel/sys.c.orig Sat Nov 16 06:11:18 1996 +++ linux/kernel/sys.c Tue Nov 19 18:42:40 1996 @@ -699,7 +699,7 @@ asmlinkage int sys_getgroups(int gidsetsize, gid_t *grouplist) { int i; - int * groups; + gid_t * groups; if (gidsetsize < 0) return -EINVAL; --- linux/include/linux/sched.h.orig Tue Nov 19 18:37:50 1996 +++ linux/include/linux/sched.h Tue Nov 19 18:46:58 1996 @@ -200,7 +200,7 @@ int session; /* boolean value for session group leader */ int leader; - int groups[NGROUPS]; + gid_t groups[NGROUPS]; /* * pointers to (original) parent process, youngest child, younger sibling, * older sibling, respectively. (p->father can be replaced with --- linux/include/asm-i386/param.h.orig Tue Aug 1 11:08:17 1995 +++ linux/include/asm-i386/param.h Tue Nov 19 18:46:23 1996 @@ -12,7 +12,7 @@ #endif #ifndef NOGROUP -#define NOGROUP (-1) +#define NOGROUP (gid_t)(-1) #endif #define MAXHOSTNAMELEN 64 /* max length of hostname */ --- linux/include/asm-alpha/param.h.orig Sun Mar 24 05:09:37 1996 +++ linux/include/asm-alpha/param.h Tue Nov 19 18:49:19 1996 @@ -12,7 +12,7 @@ #endif #ifndef NOGROUP -#define NOGROUP (-1) +#define NOGROUP (gid_t)(-1) #endif #define MAXHOSTNAMELEN 64 /* max length of hostname */ --- linux/include/asm-mips/param.h.orig Wed Jan 18 01:54:13 1995 +++ linux/include/asm-mips/param.h Tue Nov 19 18:50:19 1996 @@ -12,7 +12,7 @@ #endif #ifndef NOGROUP -#define NOGROUP (-1) +#define NOGROUP (gid_t)(-1) #endif #define MAXHOSTNAMELEN 64 /* max length of hostname */ --- linux/include/asm-m68k/param.h.orig Wed Dec 27 15:47:20 1995 +++ linux/include/asm-m68k/param.h Tue Nov 19 18:49:51 1996 @@ -12,7 +12,7 @@ #endif #ifndef NOGROUP -#define NOGROUP (-1) +#define NOGROUP (gid_t)(-1) #endif #define MAXHOSTNAMELEN 64 /* max length of hostname */ --- linux/include/asm-ppc/param.h.orig Sat Nov 25 12:49:06 1995 +++ linux/include/asm-ppc/param.h Tue Nov 19 18:50:48 1996 @@ -12,7 +12,7 @@ #endif #ifndef NOGROUP -#define NOGROUP (-1) +#define NOGROUP (gid_t)(-1) #endif #define MAXHOSTNAMELEN 64 /* max length of hostname */ --- linux/include/asm-sparc/param.h.orig Fri Nov 24 21:32:19 1995 +++ linux/include/asm-sparc/param.h Tue Nov 19 18:51:02 1996 @@ -13,7 +13,7 @@ #endif #ifndef NOGROUP -#define NOGROUP (-1) +#define NOGROUP (gid_t)(-1) #endif #define MAXHOSTNAMELEN 64 /* max length of hostname */