From: Bruno Victal Date: Fri, 15 Apr 2022 14:30:01 +0000 (+0100) Subject: dnsmasq: fix jail_mount for serversfile X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0276fab64933dc42bad865974dc224e2672f99fe;p=openwrt%2Fstaging%2Flinusw.git dnsmasq: fix jail_mount for serversfile Fix 'serversfile' option not being jail_mounted by the init script. Signed-off-by: Bruno Victal --- diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 040ceaea2f..c4ca3eb2db 100755 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -972,7 +972,14 @@ dnsmasq_start() config_list_foreach "$cfg" "addnhosts" append_addnhosts config_list_foreach "$cfg" "bogusnxdomain" append_bogusnxdomain append_parm "$cfg" "leasefile" "--dhcp-leasefile" "/tmp/dhcp.leases" - append_parm "$cfg" "serversfile" "--servers-file" + + local serversfile + config_get serversfile "$cfg" "serversfile" + [ -n "$serversfile" ] && { + xappend "--servers-file=$serversfile" + append EXTRA_MOUNT "$serversfile" + } + append_parm "$cfg" "tftp_root" "--tftp-root" append_parm "$cfg" "dhcp_boot" "--dhcp-boot" append_parm "$cfg" "local_ttl" "--local-ttl"