patch-2.1.100 linux/fs/ext2/file.c
Next file: linux/fs/ext2/inode.c
Previous file: linux/fs/ext2/balloc.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Wed May  6 10:56:05 1998
-  Orig file: 
v2.1.99/linux/fs/ext2/file.c
-  Orig date: 
Wed Apr  8 19:36:28 1998
diff -u --recursive --new-file v2.1.99/linux/fs/ext2/file.c linux/fs/ext2/file.c
@@ -144,7 +144,7 @@
 
 	/* was any of the uid bits set? */
 	mode &= inode->i_mode;
-	if (mode && !suser()) {
+	if (mode && !capable(CAP_FSETID)) {
 		inode->i_mode &= ~mode;
 		mark_inode_dirty(inode);
 	}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov