summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-11-27 17:49:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-11-27 17:49:10 +0000
commit7da25acdf9eff8df0a91528dd6c6660833a654fa (patch)
tree2ee34533549125348129e68ef50bba314e5e031c /sbin/dhclient
parent009ad2bc01a6adf57f7d7db01a16a67babc5485a (diff)
use _PATH_ names for unveil if possible
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dhclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 4d870a3adcc..221acd47ecc 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.654 2019/11/22 22:45:52 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.655 2019/11/27 17:49:09 deraadt Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -2310,7 +2310,7 @@ fork_privchld(struct interface_info *ifi, int fd, int fd2)
if ((routefd = socket(AF_ROUTE, SOCK_RAW, 0)) == -1)
fatal("socket(AF_ROUTE, SOCK_RAW)");
- if (unveil("/etc/resolv.conf", "wc") == -1)
+ if (unveil(_PATH_RESCONF, "wc") == -1)
fatal("unveil");
if (unveil("/etc/resolv.conf.tail", "r") == -1)
fatal("unveil");