diff options
Diffstat (limited to 'usr.sbin/trsp/trsp.c')
-rw-r--r-- | usr.sbin/trsp/trsp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/trsp/trsp.c b/usr.sbin/trsp/trsp.c index 74d7a12357e..cc6a7fd9ad8 100644 --- a/usr.sbin/trsp/trsp.c +++ b/usr.sbin/trsp/trsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trsp.c,v 1.6 1997/09/12 04:07:23 millert Exp $ */ +/* $OpenBSD: trsp.c,v 1.7 1998/07/08 22:13:33 deraadt Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -212,6 +212,9 @@ main(argc, argv) if (kd == NULL) errx(1, "can't open kmem: %s", errbuf); + setegid(getgid()); + setgid(getgid()); + if (kvm_nlist(kd, nl)) errx(2, "%s: no namelist", system ? system : _PATH_UNIX); |