From d9ca134e8ad9cbe1a80d5edf8dfeb27f9d9b6154 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Fri, 7 Sep 2018 07:24:05 +0000 Subject: Fix "_nfiles" reference for crash dump. Diff from fukaumi at soum.co.jp ok mpi --- usr.sbin/pstat/pstat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/pstat/pstat.c') diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 79499d848e9..6ad0460fca3 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pstat.c,v 1.118 2018/08/03 14:39:55 deraadt Exp $ */ +/* $OpenBSD: pstat.c,v 1.119 2018/09/07 07:24:05 yasuoka Exp $ */ /* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */ /*- @@ -69,7 +69,7 @@ struct nlist vnodenl[] = { #define FNL_NFILE 0 /* sysctl */ - {"_nfiles"}, + {"_numfiles"}, #define FNL_MAXFILE 1 /* sysctl */ {"_maxfiles"}, #define TTY_NTTY 2 /* sysctl */ @@ -229,8 +229,8 @@ main(int argc, char *argv[]) ttymodeprep(); } - if (unveil(_PATH_DEVDB, "r") == -1) - err(1, "unveil"); +// if (unveil(_PATH_DEVDB, "r") == -1) +// err(1, "unveil"); if (pledge("stdio rpath vminfo", NULL) == -1) err(1, "pledge"); -- cgit v1.2.3-59-g8ed1b