From c723f066b5468c6420cef2bff582b5d4ed194fbd Mon Sep 17 00:00:00 2001 From: bcook <> Date: Sat, 18 Jul 2015 00:59:00 +0000 Subject: [PATCH] replace _PATH_DEVNULL with "/dev/null", assume it will not move ok deraadt@ phessler@ claudio@ --- src/usr.sbin/ntpd/ntp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c index bb9e2a44..b81dcea6 100644 --- a/src/usr.sbin/ntpd/ntp.c +++ b/src/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.133 2015/07/18 00:53:44 bcook Exp $ */ +/* $OpenBSD: ntp.c,v 1.134 2015/07/18 00:59:00 bcook Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -125,7 +125,7 @@ ntp_main(int pipe_prnt[2], int fd_ctl, struct ntpd_conf *nconf, if ((se = getservbyname("ntp", "udp")) == NULL) fatal("getservbyname"); - if ((nullfd = open(_PATH_DEVNULL, O_RDWR, 0)) == -1) + if ((nullfd = open("/dev/null", O_RDWR, 0)) == -1) fatal(NULL); close(pipe_prnt[0]);