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

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

diff -u --recursive --new-file v2.1.74/linux/fs/ext2/inode.c linux/fs/ext2/inode.c
@@ -640,7 +640,7 @@
 	     (ATTR_FLAG_APPEND | ATTR_FLAG_IMMUTABLE)) ^
 	    (inode->u.ext2_i.i_flags &
 	     (EXT2_APPEND_FL | EXT2_IMMUTABLE_FL))) {
-		if (!fsuser() || securelevel > 0)
+		if (securelevel > 0 || !fsuser())
 			return -EPERM;
 	} else
 		if ((current->fsuid != inode->i_uid) && !fsuser())

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