More on netstat dropping UNIX sockets

Ricky Beam (jfbeam@lx1.tx.ncsu.edu)
Sat, 2 Sep 1995 02:43:00 -0400 (EDT)


I've traced down the problem:
netstat:654 (net-tools-1.2.0)
num = sscanf(line[lnr--], "%d: %lX %lX %lX %X %X %s\n",
&d, &refcnt, &proto, &flags, &type, &state, path);

The problem is the %d -> 1.3.21 sends a HEX value there NOT a decimal value.
After changing that to %X or something more appropriate, then netstat starts
working again.

--Ricky