mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 23:40:10 +01:00
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:
parent
43e3ebfaa2
commit
30a4fa454d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue