summaryrefslogtreecommitdiff
path: root/src/nm-checkpoint.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-11-30 17:07:06 +0100
committerThomas Haller <thaller@redhat.com>2017-12-05 11:50:52 +0100
commitd26c749ea6188652dc01e7150354635300f7e8ad (patch)
tree53c755a68094cfafbe0207f6e4a56a565a4bc25f /src/nm-checkpoint.c
parentf73e78770e9930cb111ecf5b6b11209daa13f9a0 (diff)
downloadNetworkManager-d26c749ea6188652dc01e7150354635300f7e8ad.tar.gz
checkpoint: don't bypass settings-connection commit code on rollback
commit involves more then just replacing the setting and writing them out. What? Dunno. It's complex. But let's not bypass the commit-changes function. That one is supposed to get it right.
Diffstat (limited to 'src/nm-checkpoint.c')
-rw-r--r--src/nm-checkpoint.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nm-checkpoint.c b/src/nm-checkpoint.c
index af56bf26e6..39a6c255cf 100644
--- a/src/nm-checkpoint.c
+++ b/src/nm-checkpoint.c
@@ -254,10 +254,8 @@ activate:
if (need_update) {
_LOGD ("rollback: updating connection %s",
nm_settings_connection_get_uuid (connection));
- nm_connection_replace_settings_from_connection (NM_CONNECTION (connection),
- dev_checkpoint->settings_connection);
nm_settings_connection_commit_changes (connection,
- NULL,
+ dev_checkpoint->settings_connection,
NM_SETTINGS_CONNECTION_COMMIT_REASON_NONE,
NULL);
}