Fix sockaddr_un.sun_path name in decoded output

* net.c (printsock): Show sockaddr_un.sun_path as "sun_path".
This fixes Debian bug #554946.
This commit is contained in:
Дмитрий Левин 2012-02-22 00:23:52 +00:00
parent 6c38156b6e
commit c86340e171

4
net.c
View File

@ -1265,10 +1265,10 @@ printsock(struct tcb *tcp, long addr, int addrlen)
if (addrlen == 2) {
tprints("NULL");
} else if (addrbuf.sau.sun_path[0]) {
tprints("path=");
tprints("sun_path=");
printpathn(tcp, addr + 2, strlen(addrbuf.sau.sun_path));
} else {
tprints("path=@");
tprints("sun_path=@");
printpathn(tcp, addr + 3, strlen(addrbuf.sau.sun_path + 1));
}
break;