]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/core/net-tools/patches/net-tools-1.60-skip.patch
a634f431bafeb4cf7ee0382bdc09e88d79e6e176
[people/ms/ipfire-3.x.git] / pkgs / core / net-tools / patches / net-tools-1.60-skip.patch
1 --- net-tools-1.60/netstat.c.skip 2006-08-07 10:45:25.000000000 +0200
2 +++ net-tools-1.60/netstat.c 2006-08-07 11:17:37.000000000 +0200
3 @@ -444,6 +444,10 @@
4 #ifdef DIRENT_HAVE_D_TYPE_WORKS
5 if (direfd->d_type!=DT_LNK)
6 continue;
7 +#else
8 + /* Skip . and .. */
9 + if (!isdigit(direfd->d_name[0]))
10 + continue;
11 #endif
12 if (procfdlen+1+strlen(direfd->d_name)+1>sizeof(line))
13 continue;