/[packages]/cauldron/net-tools/current/SOURCES/net-tools-1.60-skip.patch
ViewVC logotype

Contents of /cauldron/net-tools/current/SOURCES/net-tools-1.60-skip.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 318 - (show annotations) (download)
Fri Jan 7 23:30:25 2011 UTC (13 years, 3 months ago) by tmb
File size: 402 byte(s)
imported package net-tools
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;

  ViewVC Help
Powered by ViewVC 1.1.30