projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bdbfb1
)
[XFS] Fix check for writeable file in xfs_ioc_space ioctl code
author
Eric Sandeen
<sandeen@sgi.com>
Fri, 2 Sep 2005 06:41:16 +0000
(16:41 +1000)
committer
Nathan Scott
<nathans@sgi.com>
Fri, 2 Sep 2005 06:41:16 +0000
(16:41 +1000)
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>
fs/xfs/linux-2.6/xfs_ioctl.c
patch
|
blob
|
history
diff --git
a/fs/xfs/linux-2.6/xfs_ioctl.c
b/fs/xfs/linux-2.6/xfs_ioctl.c
index 05a447e51cc023c4d19f2aa4dd275d4b59d87db6..35cbd88e1a541ba673b1b410ae7a498e1d3278e6 100644
(file)
--- 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)