Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
cd6cdba1
Commit
cd6cdba1
authored
8 years ago
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsmasq: work around unclear permission situation on hosts file
parent
afa861d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
dnsmasq.inc
src/etc/inc/plugins.inc.d/dnsmasq.inc
+7
-0
No files found.
src/etc/inc/plugins.inc.d/dnsmasq.inc
View file @
cd6cdba1
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment