Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 2269aee0328d979d9de644b78b94e558 > files > 74

net-tools-1.60-36.mga3.src.rpm

--- net-tools-1.60/netstat.c.skip	2006-08-07 10:45:25.000000000 +0200
+++ net-tools-1.60/netstat.c	2006-08-07 11:17:37.000000000 +0200
@@ -444,6 +444,10 @@
 #ifdef DIRENT_HAVE_D_TYPE_WORKS
 	    if (direfd->d_type!=DT_LNK) 
 		continue;
+#else
+	/* Skip . and .. */
+	    if (!isdigit(direfd->d_name[0])) 
+		continue;
 #endif
 	    if (procfdlen+1+strlen(direfd->d_name)+1>sizeof(line)) 
 		continue;