summaryrefslogtreecommitdiff
path: root/usr.bin/getconf
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2022-07-20 14:23:14 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2022-07-20 14:23:14 +0000
commitb26b5d4d03ed5984f008192fc6af630e53c62c0e (patch)
treebc6d0b3d3d3d5337d4583114135aac8a72c45b1d /usr.bin/getconf
parent77de84f8e101a15c1ab50fce522edd7de9c97a73 (diff)
This no longer needs the inet pledge. sysconf(3) was modified to report
_POSIX_IPV6 without opening a socket using a method that is allowed by the vminfo plegde. OK sthen@ deraadt@
Diffstat (limited to 'usr.bin/getconf')
-rw-r--r--usr.bin/getconf/getconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/getconf/getconf.c b/usr.bin/getconf/getconf.c
index f3240af8bd4..c8645478b57 100644
--- a/usr.bin/getconf/getconf.c
+++ b/usr.bin/getconf/getconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getconf.c,v 1.21 2021/07/12 15:09:19 beck Exp $ */
+/* $OpenBSD: getconf.c,v 1.22 2022/07/20 14:23:13 claudio Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -499,7 +499,7 @@ main(int argc, char *argv[])
break;
case SYSCONF:
- if (pledge("stdio inet ps vminfo", NULL) == -1)
+ if (pledge("stdio ps vminfo", NULL) == -1)
err(1, "pledge");
errno = 0;
if ((val = sysconf(cp->value)) == -1) {