UML - Fix hostfs typo
PATCH 1/9 UML - Fix hostfs typo
Fix a typo in the hostfs setgid code.
Signed-off-by Jeff Dike <[email protected]>
arch/um/include/kern.h +1 -0
@@ -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 );
fs/hostfs/hostfs_kern.c +1 -1
@@ -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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel