patch-2.1.100 linux/fs/ext2/balloc.c
Next file: linux/fs/ext2/file.c
Previous file: linux/fs/ext2/acl.c
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
Wed May  6 10:56:05 1998
-  Orig file: 
v2.1.99/linux/fs/ext2/balloc.c
-  Orig date: 
Mon Apr  6 17:41:00 1998
diff -u --recursive --new-file v2.1.99/linux/fs/ext2/balloc.c linux/fs/ext2/balloc.c
@@ -383,7 +383,8 @@
 	if (le32_to_cpu(es->s_free_blocks_count) <= le32_to_cpu(es->s_r_blocks_count) &&
 	    ((sb->u.ext2_sb.s_resuid != current->fsuid) &&
 	     (sb->u.ext2_sb.s_resgid == 0 ||
-	      !in_group_p (sb->u.ext2_sb.s_resgid)) && !fsuser())) {
+	      !in_group_p (sb->u.ext2_sb.s_resgid)) && 
+	     !capable(CAP_SYS_RESOURCE))) {
 		unlock_super (sb);
 		return 0;
 	}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov