patch-2.4.23 linux-2.4.23/fs/minix/inode.c
Next file: linux-2.4.23/fs/namespace.c
Previous file: linux-2.4.23/fs/lockd/svcproc.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
2003-11-28 10:26:21.000000000 -0800
- Orig file:
linux-2.4.22/fs/minix/inode.c
- Orig date:
2002-02-25 11:38:09.000000000 -0800
diff -urN linux-2.4.22/fs/minix/inode.c linux-2.4.23/fs/minix/inode.c
@@ -511,6 +511,8 @@
*/
void minix_truncate(struct inode * inode)
{
+ if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)))
+ return;
if (INODE_VERSION(inode) == MINIX_V1)
V1_minix_truncate(inode);
else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)