summaryrefslogtreecommitdiff
path: root/sbin/ping/ping.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 01:37:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 01:37:11 +0000
commit7a01108f60e58c5683c269bbbb884090b5a0620f (patch)
treed28dc1713411066fb4ced6b7bb3fe35eb3a43955 /sbin/ping/ping.c
parent76228dc5f1e37f76feb11003febafceed8e121f0 (diff)
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'sbin/ping/ping.c')
-rw-r--r--sbin/ping/ping.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index a78b4f50669..57af30bf1be 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping.c,v 1.126 2015/10/03 00:44:37 deraadt Exp $ */
+/* $OpenBSD: ping.c,v 1.127 2015/10/09 01:37:06 deraadt Exp $ */
/* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */
/*
@@ -502,11 +502,11 @@ main(int argc, char *argv[])
(void)printf("PING %s: %d data bytes\n", hostname, datalen);
if (options & F_NUMERIC) {
- if (tame("stdio inet", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio inet", NULL) == -1)
+ err(1, "pledge");
} else {
- if (tame("stdio inet dns", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio inet dns", NULL) == -1)
+ err(1, "pledge");
}
(void)signal(SIGINT, finish);