patch-2.1.36 linux/fs/isofs/dir.c
Next file: linux/fs/isofs/inode.c
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Thu Apr 17 09:28:01 1997
- Orig file:
v2.1.35/linux/fs/isofs/dir.c
- Orig date:
Mon Apr 14 16:28:17 1997
diff -u --recursive --new-file v2.1.35/linux/fs/isofs/dir.c linux/fs/isofs/dir.c
@@ -155,6 +155,11 @@
filp->f_pos = ((filp->f_pos & ~(ISOFS_BLOCK_SIZE - 1))
+ ISOFS_BLOCK_SIZE);
offset = 0;
+ if( filp->f_pos >= inode->i_size )
+ {
+ return 0;
+ }
+
block = isofs_bmap(inode, (filp->f_pos) >> bufbits);
if (!block)
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov