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

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)