summaryrefslogtreecommitdiff
path: root/src/resolve/resolved.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-06-06 19:00:36 +0200
committerLennart Poettering <lennart@poettering.net>2016-06-06 19:17:38 +0200
commit7207052d252615b2e991b1f1e8eda79869193f09 (patch)
treef5f30da78fc388796c43a44be6ad188770a7fd08 /src/resolve/resolved.c
parent2817157bb705e0f3e9ad4a83246a80d026866be3 (diff)
resolved: also rewrite private /etc/resolv.conf when configuration is changed via bus calls
This also moves log message generation into manager_write_resolv_conf(), so that it is shorter to invoke the function, given that we have to invoke it at a couple of additional places now. Fixes: #3225
Diffstat (limited to 'src/resolve/resolved.c')
-rw-r--r--src/resolve/resolved.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/resolve/resolved.c b/src/resolve/resolved.c
index 161ea03412..6cef401870 100644
--- a/src/resolve/resolved.c
+++ b/src/resolve/resolved.c
@@ -85,11 +85,8 @@ int main(int argc, char *argv[]) {
goto finish;
}
- /* Write finish default resolv.conf to avoid a dangling
- * symlink */
- r = manager_write_resolv_conf(m);
- if (r < 0)
- log_warning_errno(r, "Could not create "PRIVATE_RESOLV_CONF": %m");
+ /* Write finish default resolv.conf to avoid a dangling symlink */
+ (void) manager_write_resolv_conf(m);
sd_notify(false,
"READY=1\n"