patch-2.1.75 linux/fs/ext2/balloc.c

Next file: linux/fs/ext2/inode.c
Previous file: linux/fs/ext2/acl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.74/linux/fs/ext2/balloc.c linux/fs/ext2/balloc.c
@@ -295,9 +295,9 @@
 	lock_super (sb);
 	es = sb->u.ext2_sb.s_es;
 	if (le32_to_cpu(es->s_free_blocks_count) <= le32_to_cpu(es->s_r_blocks_count) &&
-	    (!fsuser() && (sb->u.ext2_sb.s_resuid != current->fsuid) &&
+	    ((sb->u.ext2_sb.s_resuid != current->fsuid) &&
 	     (sb->u.ext2_sb.s_resgid == 0 ||
-	      !in_group_p (sb->u.ext2_sb.s_resgid)))) {
+	      !in_group_p (sb->u.ext2_sb.s_resgid)) && !fsuser())) {
 		unlock_super (sb);
 		return 0;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov