tree 9904bc324d1d174c198da8a74d6dec937cddc036 parent 3bdbfb104e53b367892cc9510e6722346dfb656b author Eric Sandeen <[EMAIL PROTECTED]> Fri, 02 Sep 2005 16:41:16 +1000 committer Nathan Scott <[EMAIL PROTECTED]> Fri, 02 Sep 2005 16:41:16 +1000
[XFS] Fix check for writeable file in xfs_ioc_space ioctl code SGI-PV: 938905 SGI-Modid: xfs-linux:xfs-kern:195240a Signed-off-by: Eric Sandeen <[EMAIL PROTECTED]> Signed-off-by: Nathan Scott <[EMAIL PROTECTED]> fs/xfs/linux-2.6/xfs_ioctl.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c --- a/fs/xfs/linux-2.6/xfs_ioctl.c +++ b/fs/xfs/linux-2.6/xfs_ioctl.c @@ -982,7 +982,7 @@ xfs_ioc_space( if (vp->v_inode.i_flags & (S_IMMUTABLE|S_APPEND)) return -XFS_ERROR(EPERM); - if (!(filp->f_flags & FMODE_WRITE)) + if (!(filp->f_mode & FMODE_WRITE)) return -XFS_ERROR(EBADF); if (vp->v_type != VREG) - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html