checkpoint: fix D-Bus operation to destroy checkpoint

When passing "/" to destroy all checkpoints, wrongly no
checkpoint was destroyed.

When passing a particular path that should be destroyed,
wrongly all checkpoints were destroyed.

Fixes: 79458a558b
This commit is contained in:
Thomas Haller 2018-05-03 14:37:56 +02:00
parent 43e3ebfaa2
commit 30a4fa454d

View file

@ -224,7 +224,7 @@ nm_checkpoint_manager_destroy (NMCheckpointManager *self,
g_return_val_if_fail (path && path[0] == '/', FALSE);
g_return_val_if_fail (!error || !*error, FALSE);
if (!nm_streq (path, "/")) {
if (nm_streq (path, "/")) {
nm_checkpoint_manager_destroy_all (self);
return TRUE;
}