Fix format for Unix domain sockets

This commit is contained in:
Wichert Akkerman 2001-02-21 16:42:26 +00:00
parent 0cbfb324b5
commit fa30618c22
2 changed files with 6 additions and 2 deletions

View File

@ -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
View File

@ -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: