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
- Lines: 9
- Date:
2003-08-25 04:44:43.000000000 -0700
- Orig file:
linux-2.4.21/fs/reiserfs/ioctl.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
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)