diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2015-07-18 00:59:01 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2015-07-18 00:59:01 +0000 |
commit | 1022f8c98bd6e2391303748963d6201786adce04 (patch) | |
tree | f4db2fc0f013d8263f6e0885e740eb4ea0120081 | |
parent | 595af7cbcb603de5f69d540a410a2b7107050df5 (diff) |
replace _PATH_DEVNULL with "/dev/null", assume it will not move
ok deraadt@ phessler@ claudio@
-rw-r--r-- | usr.sbin/ntpd/ntp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c index bb9e2a44664..b81dcea6264 100644 --- a/usr.sbin/ntpd/ntp.c +++ b/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 <henning@openbsd.org> @@ -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]); |