From c42d3dfc6a3f99fbbe1a0c87af2f3705ea3ce262 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 8 Jul 1998 22:14:38 +0000 Subject: whack kmem gid after kvm_openfiles() --- bin/ps/ps.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin/ps/ps.c') diff --git a/bin/ps/ps.c b/bin/ps/ps.c index d506c2b20a3..7e84c0038fd 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ps.c,v 1.9 1997/08/04 05:37:05 deraadt Exp $ */ +/* $OpenBSD: ps.c,v 1.10 1998/07/08 22:14:25 deraadt Exp $ */ /* $NetBSD: ps.c,v 1.15 1995/05/18 20:33:25 mycroft Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: ps.c,v 1.9 1997/08/04 05:37:05 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ps.c,v 1.10 1998/07/08 22:14:25 deraadt Exp $"; #endif #endif /* not lint */ @@ -272,6 +272,9 @@ main(argc, argv) if (kd == 0) errx(1, "%s", errbuf); + setegid(getgid()); + setgid(getgid()); + if (!fmt) parsefmt(dfmt); -- cgit v1.2.3