dnsmasq: work around unclear permission situation on hosts file

This commit is contained in:
Franco Fichtner 2016-12-08 07:59:58 +01:00
parent afa861d0cd
commit cd6cdba1bf

View File

@ -268,6 +268,13 @@ function _dnsmasq_add_host_entries()
} else {
file_put_contents('/var/etc/dnsmasq-hosts', $lhosts . $dhosts);
}
/*
* Several reports indicated 600 permissions on this file.
* The reason is currently unknown, but setting it to 644
* as it should be brings the service back to life.
*/
chmod('/var/etc/dnsmasq-hosts', 0644);
}
function _dnsmasq_dhcpleases_start()