commit | 52cb09d16ed7e233c35c0c33e72a952211a056b3 | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <miklos@szeredi.hu> | Mon Nov 07 11:59:00 2005 +0000 |
committer | Miklos Szeredi <miklos@szeredi.hu> | Mon Nov 07 11:59:00 2005 +0000 |
tree | e13243dd1ac8f5e3eaaf10e11c6d2637b15e9046 | |
parent | f7eec0361d3b2465c8cf3449082ee396b016e29b [diff] [blame] |
fix up statfs interface
diff --git a/kernel/dir.c b/kernel/dir.c index 48df469..bfec288 100644 --- a/kernel/dir.c +++ b/kernel/dir.c
@@ -659,9 +659,11 @@ return err; } else { int mode = inode->i_mode; +#ifndef KERNEL_2_6_11_PLUS if ((mask & MAY_WRITE) && IS_RDONLY(inode) && (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode))) return -EROFS; +#endif if ((mask & MAY_EXEC) && !S_ISDIR(mode) && !(mode & S_IXUGO)) return -EACCES;