summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2020-08-21 22:13:16 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2020-08-21 22:13:16 +0000
commit16caca2618865515f29ef16afe11d119763d3f8b (patch)
treea9406063b63324f043f46da7ad080453975513d1
parent00da495c0633e82507a4a8335eff6699208bed27 (diff)
Print unp_path for unix domain sockets. OK kn@ mvs@
-rw-r--r--usr.bin/fstat/fstat.c4
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 */