openbsd-ports/net/dnsmasq/patches/patch-src_config_h
jca 88c0b276c6 Update to dnsmasq-2.80, and fix IP_SENDSRCADDR usage
Among other interesting changes: DHCP rapid commit,
dnssec-check-unsigned is now on for people using dnssec, various bug
fixes.  From Brad (maintainer)

Also fix cmsg API usage that lead us to disable the use of
IP_SENDSRCADDR.  From me.
2019-01-17 10:14:33 +00:00

25 lines
749 B
Plaintext

$OpenBSD: patch-src_config_h,v 1.21 2019/01/17 10:14:33 jca Exp $
Index: src/config.h
--- src/config.h.orig
+++ src/config.h
@@ -43,8 +43,8 @@
#define HOSTSFILE "/etc/hosts"
#define ETHERSFILE "/etc/ethers"
#define DEFLEASE 3600 /* default lease time, 1 hour */
-#define CHUSER "nobody"
-#define CHGRP "dip"
+#define CHUSER "_dnsmasq"
+#define CHGRP "_dnsmasq"
#define TFTP_MAX_CONNECTIONS 50 /* max simultaneous connections */
#define LOG_MAX 5 /* log-queue length */
#define RANDFILE "/dev/urandom"
@@ -206,7 +206,7 @@ RESOLVFILE
# if defined(__FreeBSD__)
# define CONFFILE "/usr/local/etc/dnsmasq.conf"
# else
-# define CONFFILE "/etc/dnsmasq.conf"
+# define CONFFILE "${SYSCONFDIR}/dnsmasq.conf"
# endif
#endif