vserver 1.9.3
[linux-2.6.git] / fs / ext2 / ioctl.c
index 2520c2f..7bb50ca 100644 (file)
@@ -50,8 +50,8 @@ 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))) {
+                       ((flags ^ oldflags) & (EXT2_APPEND_FL |
+                       EXT2_IMMUTABLE_FL | EXT2_IUNLINK_FL))) {
                        if (!capable(CAP_LINUX_IMMUTABLE))
                                return -EPERM;
                }