[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>
This commit is contained in:
Eric Sandeen 2005-09-02 16:41:16 +10:00 committed by Nathan Scott
parent 3bdbfb104e
commit ad4a8ac4e9
1 changed files with 1 additions and 1 deletions

View File

@ -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)