patch-2.1.79 linux/fs/proc/link.c

Next file: linux/fs/proc/root.c
Previous file: linux/fs/proc/base.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/fs/proc/link.c linux/fs/proc/link.c
@@ -146,9 +146,9 @@
 	pattern = NULL;
 	inode = dentry->d_inode;
 	if (inode && dentry->d_parent == dentry) {
-		if (inode->i_sock)
+		if (S_ISSOCK(inode->i_mode))
 			pattern = "socket:[%lu]";
-		if (inode->i_pipe)
+		if (S_ISFIFO(inode->i_mode))
 			pattern = "pipe:[%lu]";
 	}
 	

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov