linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 1/9] UML - Fix hostfs typo
@ 2005-03-10  2:15 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2005-03-10  2:15 UTC (permalink / raw)
  To: torvalds; +Cc: akpm, linux-kernel, user-mode-linux-devel

Fix a typo in the hostfs setgid code.

Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: linux-2.6.11/arch/um/include/kern.h
===================================================================
--- linux-2.6.11.orig/arch/um/include/kern.h	2005-03-08 20:13:55.000000000 -0500
+++ linux-2.6.11/arch/um/include/kern.h	2005-03-08 21:56:19.000000000 -0500
@@ -26,6 +26,7 @@
 extern void perror(char *err);
 extern int kill(int pid, int sig);
 extern int getuid(void);
+extern int getgid(void);
 extern int pause(void);
 extern int write(int, const void *, int);
 extern int exit(int);
Index: linux-2.6.11/fs/hostfs/hostfs_kern.c
===================================================================
--- linux-2.6.11.orig/fs/hostfs/hostfs_kern.c	2005-03-08 20:17:34.000000000 -0500
+++ linux-2.6.11/fs/hostfs/hostfs_kern.c	2005-03-08 20:18:15.000000000 -0500
@@ -845,7 +845,7 @@
 	if(attr->ia_valid & ATTR_GID){
 		if((dentry->d_inode->i_sb->s_dev == ROOT_DEV) &&
 		   (attr->ia_gid == 0))
-			attr->ia_gid = getuid();
+			attr->ia_gid = getgid();
 		attrs.ia_valid |= HOSTFS_ATTR_GID;
 		attrs.ia_gid = attr->ia_gid;
 	}



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-10  0:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-10  2:15 [uml-devel] [PATCH 1/9] UML - Fix hostfs typo Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox