diff options
| author | Thomas Moestl <tmm@FreeBSD.org> | 2001-03-22 17:39:57 +0000 |
|---|---|---|
| committer | Thomas Moestl <tmm@FreeBSD.org> | 2001-03-22 17:39:57 +0000 |
| commit | f8d15d5230cfa1b0abc3dce86bb1a01f93e74ae3 (patch) | |
| tree | 80d7d46f95806eca75653b8b15098426399fa952 /usr.bin/nfsstat | |
| parent | ed873335b7e832afa4f64034001aa3387000b6b3 (diff) | |
Notes
Diffstat (limited to 'usr.bin/nfsstat')
| -rw-r--r-- | usr.bin/nfsstat/Makefile | 3 | ||||
| -rw-r--r-- | usr.bin/nfsstat/nfsstat.c | 5 |
2 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/nfsstat/Makefile b/usr.bin/nfsstat/Makefile index 6d79ce7fd9729..cfe0e1efb4329 100644 --- a/usr.bin/nfsstat/Makefile +++ b/usr.bin/nfsstat/Makefile @@ -1,10 +1,9 @@ +# $FreeBSD$ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= nfsstat CFLAGS+=-DNFS DPADD= ${LIBKVM} LDADD= -lkvm -BINGRP= kmem -BINMODE=2555 .include <bsd.prog.mk> diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index dc4a625f22355..3c08a551a78e2 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -142,12 +142,7 @@ main(argc, argv) } } #endif - /* - * Discard setgid privileges if not the running kernel so that bad - * guys can't print interesting stuff from kernel memory. - */ if (nlistf != NULL || memf != NULL) { - setgid(getgid()); deadkernel = 1; if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, |
