1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-10 00:58:20 +03:00

network: synchronously save state file when link is being reconfigured

This commit is contained in:
Yu Watanabe 2020-01-22 16:05:27 +09:00
parent 8ae7b8a1e1
commit 0ce0e3470e

View File

@ -620,6 +620,12 @@ int bus_link_method_reconfigure(sd_bus_message *message, void *userdata, sd_bus_
if (r < 0) if (r < 0)
return r; return r;
link_set_state(l, LINK_STATE_INITIALIZED);
r = link_save(l);
if (r < 0)
return r;
link_clean(l);
return sd_bus_reply_method_return(message, NULL); return sd_bus_reply_method_return(message, NULL);
} }