summaryrefslogtreecommitdiff
path: root/src/network/networkd-network.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-21 12:07:08 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-21 12:07:08 +0200
commit27f9eda40a73d419ddb7a62b67a7284f5543180d (patch)
treee63d3a633e98f990e6eece6b0eed9eb827235238 /src/network/networkd-network.c
parentbf3ee9cdc9c7489e442e43cec09ad9275739875a (diff)
parent84de38c56915e14c148f558c6acc489a00755696 (diff)
Merge pull request #1626 from teg/networkd
networkd: assorted fixes
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 5b8ca305bc..97ada56866 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -369,10 +369,9 @@ int network_apply(Manager *manager, Network *network, Link *link) {
route->protocol = RTPROT_STATIC;
}
- if (network->dns || network->ntp) {
- r = link_save(link);
- if (r < 0)
- return r;
+ if (network->dns || network->ntp || network->domains) {
+ manager_dirty(manager);
+ link_dirty(link);
}
return 0;