diff options
author | yasuoka <yasuoka@openbsd.org> | 2018-09-07 07:24:05 +0000 |
---|---|---|
committer | yasuoka <yasuoka@openbsd.org> | 2018-09-07 07:24:05 +0000 |
commit | d9ca134e8ad9cbe1a80d5edf8dfeb27f9d9b6154 (patch) | |
tree | 2b2d2f5701565f4fa0df738619accefcf617f83f /usr.sbin | |
parent | Also verify a overwrite for the copy of a fifo, link and device node. (diff) | |
download | wireguard-openbsd-d9ca134e8ad9cbe1a80d5edf8dfeb27f9d9b6154.tar.xz wireguard-openbsd-d9ca134e8ad9cbe1a80d5edf8dfeb27f9d9b6154.zip |
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"); |