diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2018-09-07 07:24:06 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2018-09-07 07:24:06 +0000 |
commit | 739a057e53d34ec7f29d9c618ed3468cc6fba984 (patch) | |
tree | b4a468ecc861b68a6523c0a99498eca598848b40 /usr.sbin | |
parent | e9a35428e27300083beca3f3f539ee70f01b4ae1 (diff) |
Fix "_nfiles" reference for crash dump.
Diff from fukaumi at soum.co.jp
ok mpi
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pstat/pstat.c | 8 |
1 files changed, 4 insertions, 4 deletions
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"); |