This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / fs / ext2 / ioctl.c
index 96bfa89..594c16c 100644 (file)
@@ -50,11 +50,11 @@ int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd,
                 *
                 * This test looks nicer. Thanks to Pauline Middelink
                 */
-               if ((oldflags & EXT2_IMMUTABLE_FL) ||
-                       ((flags ^ oldflags) & (EXT2_APPEND_FL |
-                       EXT2_IMMUTABLE_FL | EXT2_IUNLINK_FL))) {
-                       if (!capable(CAP_LINUX_IMMUTABLE))
-                               return -EPERM;
+               if (((oldflags & EXT2_IMMUTABLE_FL) ||
+                       ((flags ^ oldflags) &
+                        (EXT2_APPEND_FL | EXT2_IMMUTABLE_FL | EXT2_IUNLINK_FL)))
+                   && !capable(CAP_LINUX_IMMUTABLE)) {
+                       return -EPERM;          
                }
 
                flags = flags & EXT2_FL_USER_MODIFIABLE;