Commit e85078d3 authored by Franco Fichtner's avatar Franco Fichtner

dnsmasq: work around unclear permission situation on hosts file

(cherry picked from commit cd6cdba1)
parent 5db0c310
...@@ -268,6 +268,13 @@ function _dnsmasq_add_host_entries() ...@@ -268,6 +268,13 @@ function _dnsmasq_add_host_entries()
} else { } else {
file_put_contents('/var/etc/dnsmasq-hosts', $lhosts . $dhosts); 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() function _dnsmasq_dhcpleases_start()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment