linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] [PATCH] correct gid in hostfs_kern.c
@ 2003-09-23 17:20 Hannes Schulz
  2005-02-07 18:19 ` Blaisorblade
  0 siblings, 1 reply; 2+ messages in thread
From: Hannes Schulz @ 2003-09-23 17:20 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: jdike

I was reading hostfs_* because I wanted hostfs as rootfs (when 
launched by root).


Regards

Hannes


--- uml-2.4.22um5-orig/arch/um/fs/hostfs/hostfs_kern.c	2003-09-23 
15:21:33.000000000 +0200
+++ uml-2.4.22um5-hwh1/arch/um/fs/hostfs/hostfs_kern.c	2003-09-23 
15:24:42.000000000 +0200
@@ -766,7 +766,7 @@
  	if(attr->ia_valid & ATTR_GID){
  		if(kdev_same(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;
  	}


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2005-02-07 18:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-23 17:20 [uml-devel] [PATCH] correct gid in hostfs_kern.c Hannes Schulz
2005-02-07 18:19 ` Blaisorblade

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