diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2020-08-21 22:13:16 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2020-08-21 22:13:16 +0000 |
commit | 16caca2618865515f29ef16afe11d119763d3f8b (patch) | |
tree | a9406063b63324f043f46da7ad080453975513d1 | |
parent | 00da495c0633e82507a4a8335eff6699208bed27 (diff) |
Print unp_path for unix domain sockets. OK kn@ mvs@
-rw-r--r-- | usr.bin/fstat/fstat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index fe89940aa48..7bbb1b2d4cb 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fstat.c,v 1.99 2019/02/05 02:17:32 deraadt Exp $ */ +/* $OpenBSD: fstat.c,v 1.100 2020/08/21 22:13:15 millert Exp $ */ /* * Copyright (c) 2009 Todd C. Miller <millert@openbsd.org> @@ -805,6 +805,8 @@ socktrans(struct kinfo_file *kf) hide((void *)(uintptr_t)kf->unp_conn); } } + if (kf->unp_path[0] != '\0') + printf(" %s", kf->unp_path); break; case AF_MPLS: /* print protocol number and socket address */ |