correct place and passing the invocation the correct parameters.
Noticed by & initial diff from matthieu@
-/* $OpenBSD: dhcpd.h,v 1.201 2017/07/01 23:27:56 krw Exp $ */
+/* $OpenBSD: dhcpd.h,v 1.202 2017/07/02 09:11:13 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
int, int);
void flush_unpriv_ibuf(const char *);
+
+int resolv_conf_priority(int, int);
-/* $OpenBSD: kroute.c,v 1.101 2017/07/01 23:27:56 krw Exp $ */
+/* $OpenBSD: kroute.c,v 1.102 2017/07/02 09:11:13 krw Exp $ */
/*
* Copyright 2012 Kenneth R Westerback <krw@openbsd.org>
int check_route_label(struct sockaddr_rtlabel *);
void populate_rti_info(struct sockaddr **, struct rt_msghdr *);
void delete_route(int, struct rt_msghdr *);
-int resolv_conf_priority(int, int);
#define ROUTE_LABEL_NONE 1
-/* $OpenBSD: privsep.c,v 1.53 2017/07/01 23:27:56 krw Exp $ */
+/* $OpenBSD: privsep.c,v 1.54 2017/07/02 09:11:13 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
case IMSG_WRITE_RESOLV_CONF:
if (imsg.hdr.len <= IMSG_HEADER_SIZE)
log_warnx("short IMSG_WRITE_RESOLV_CONF");
- else if (resolv_conf_priority(ifi->rdomain))
+ else if (resolv_conf_priority(ifi->rdomain, routefd))
priv_write_resolv_conf(imsg.data,
imsg.hdr.len - IMSG_HEADER_SIZE);
break;