patch-2.2.17 linux/fs/proc/inode.c
Next file: linux/fs/read_write.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Sep 4 18:39:27 2000
- Orig file:
v2.2.16/fs/proc/inode.c
- Orig date:
Mon Sep 4 18:37:06 2000
diff -u --recursive --new-file v2.2.16/fs/proc/inode.c linux/fs/proc/inode.c
@@ -149,7 +149,7 @@
return 0;
/* read and search access */
if ((mask == S_IROTH) ||
- (S_ISDIR(mode) && !(mask & ~(S_IROTH | S_IXOTH))))
+ (S_ISDIR(inode->i_mode) && !(mask & ~(S_IROTH | S_IXOTH))))
if (capable(CAP_DAC_READ_SEARCH))
return 0;
return -EACCES;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)