diff options
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r-- | usr.bin/netstat/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 4f373d1..30dfaa8 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -664,6 +664,7 @@ kread(u_long addr, char *buf, int size) * XXX. */ kvmd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf); + setgid(getgid()); if (kvmd != NULL) { if (kvm_nlist(kvmd, nl) < 0) { if(nlistf) |