aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sgi.com>2005-09-02 02:41:16 -0400
committerNathan Scott <nathans@sgi.com>2005-09-02 02:41:16 -0400
commitad4a8ac4e9d9cffb0a4c9ebebc6bda9d8dbbfe99 (patch)
tree9904bc324d1d174c198da8a74d6dec937cddc036 /fs
parent3bdbfb104e53b367892cc9510e6722346dfb656b (diff)
[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 <sandeen@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/linux-2.6/xfs_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c
index 05a447e51cc0..35cbd88e1a54 100644
--- 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(
982 if (vp->v_inode.i_flags & (S_IMMUTABLE|S_APPEND)) 982 if (vp->v_inode.i_flags & (S_IMMUTABLE|S_APPEND))
983 return -XFS_ERROR(EPERM); 983 return -XFS_ERROR(EPERM);
984 984
985 if (!(filp->f_flags & FMODE_WRITE)) 985 if (!(filp->f_mode & FMODE_WRITE))
986 return -XFS_ERROR(EBADF); 986 return -XFS_ERROR(EBADF);
987 987
988 if (vp->v_type != VREG) 988 if (vp->v_type != VREG)