Fix format for Unix domain sockets
This commit is contained in:
parent
0cbfb324b5
commit
fa30618c22
@ -1,3 +1,7 @@
|
||||
2001-02-21 Wichert Akkerman <wakkerma@debian.org>
|
||||
|
||||
* net.c: fix format for printing Unix domain sockets
|
||||
|
||||
2001-02-19 Wichert Akkerman <wakkerma@debian.org>
|
||||
|
||||
* linux/mips/syscallent.h: use new sys_sysmips
|
||||
|
4
net.c
4
net.c
@ -615,9 +615,9 @@ int addrlen;
|
||||
if (addrlen==2) {
|
||||
tprintf("<nil>");
|
||||
} else if (addrbuf.sau.sun_path[0]) {
|
||||
tprintf("path=\"%*.*s\"", addrlen-2, addrlen-2, addrbuf.sau.sun_path);
|
||||
tprintf("path=\"%-.*s\"", addrlen-2, addrbuf.sau.sun_path);
|
||||
} else {
|
||||
tprintf("path=@%*.*s", addrlen-3, addrlen-3, addrbuf.sau.sun_path+1);
|
||||
tprintf("path=@%-.*s", addrlen-3, addrbuf.sau.sun_path+1);
|
||||
}
|
||||
break;
|
||||
case AF_INET:
|
||||
|
Loading…
Reference in New Issue
Block a user