From 16caca2618865515f29ef16afe11d119763d3f8b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 21 Aug 2020 22:13:16 +0000 Subject: Print unp_path for unix domain sockets. OK kn@ mvs@ --- usr.bin/fstat/fstat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ -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 */ -- cgit v1.2.3