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:
parent
6c38156b6e
commit
c86340e171
4
net.c
4
net.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user