patch-2.4.22 linux-2.4.22/fs/reiserfs/ioctl.c

Next file: linux-2.4.22/fs/reiserfs/item_ops.c
Previous file: linux-2.4.22/fs/reiserfs/inode.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/fs/reiserfs/ioctl.c linux-2.4.22/fs/reiserfs/ioctl.c
@@ -51,7 +51,7 @@
 		if (get_user(flags, (int *) arg))
 			return -EFAULT;
 
-		if ( ( flags & REISERFS_IMMUTABLE_FL ) && 
+		if ( ( ( flags ^ inode->u.reiserfs_i.i_attrs) & ( REISERFS_IMMUTABLE_FL | REISERFS_APPEND_FL)) && 
 		     !capable( CAP_LINUX_IMMUTABLE ) )
 			return -EPERM;
 			

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)