diff options
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/machine.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 52eb7112bcf..f112fe7bb02 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machine.c,v 1.9 1998/06/25 16:54:35 deraadt Exp $ */ +/* $OpenBSD: machine.c,v 1.10 1998/07/08 22:14:16 deraadt Exp $ */ /* * top - a top users display for Unix @@ -203,6 +203,9 @@ struct statics *statics; return(-1); } + setegid(getgid()); + setgid(getgid()); + /* get the list of symbols we want to access in the kernel */ if (kvm_nlist(kd, nlst) <= 0) { warnx("nlist failed"); |