Backout -a restriction hack.

Requested by:	rwatson
This commit is contained in:
Ruslan Ermilov 2001-02-26 08:09:51 +00:00
parent 87a636ccb0
commit f806cd425e
2 changed files with 1 additions and 7 deletions

View File

@ -54,7 +54,6 @@ Show all data in the message buffer.
This includes any syslog records and
.Pa /dev/console
output.
Only root is allowed to use this option.
.It Fl M
Extract values associated with the name list from the specified core
instead of the default

View File

@ -45,7 +45,6 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/types.h>
#include <sys/msgbuf.h>
#include <err.h>
@ -54,10 +53,9 @@ static const char rcsid[] =
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <sysexits.h>
#include <syslog.h>
#include <unistd.h>
#include <vis.h>
#include <sys/syslog.h>
struct nlist nl[] = {
#define X_MSGBUF 0
@ -111,9 +109,6 @@ main(argc, argv)
if (memf != NULL || nlistf != NULL)
setgid(getgid());
if (all && getuid())
errx(EX_NOPERM, "must be root to use -a");
/* Read in kernel message buffer, do sanity checks. */
if ((kd = kvm_open(nlistf, memf, NULL, O_RDONLY, "dmesg")) == NULL)
exit (1);