diff options
Diffstat (limited to 'usr.sbin/ntpd/ntp_dns.c')
-rw-r--r-- | usr.sbin/ntpd/ntp_dns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntp_dns.c b/usr.sbin/ntpd/ntp_dns.c index eadb0b45869..6046ba7be18 100644 --- a/usr.sbin/ntpd/ntp_dns.c +++ b/usr.sbin/ntpd/ntp_dns.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp_dns.c,v 1.11 2015/10/03 02:48:54 deraadt Exp $ */ +/* $OpenBSD: ntp_dns.c,v 1.12 2015/10/09 01:37:09 deraadt Exp $ */ /* * Copyright (c) 2003-2008 Henning Brauer <henning@openbsd.org> @@ -90,8 +90,8 @@ ntp_dns(int pipe_ntp[2], struct ntpd_conf *nconf, struct passwd *pw) fatal(NULL); imsg_init(ibuf_dns, pipe_ntp[1]); - if (tame("dns rw", NULL) == -1) - err(1, "tame"); + if (pledge("dns rw", NULL) == -1) + err(1, "pledge"); while (quit_dns == 0) { pfd[0].fd = ibuf_dns->fd; |