diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2016-09-13 16:12:23 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2016-09-13 16:14:37 +0200 |
commit | 83f689e82d81a2314049b85989979631950499d4 (patch) | |
tree | 1a414d31527302a9e08904eb723da01e0b5bc9bc | |
parent | 6c3c4d2f80b9cc2e37d2a0de2dc329fd6f9e3791 (diff) | |
download | NetworkManager-bg/clients-agent-message-rh1351272.tar.gz |
fixup! clients: fix matching of connection pathbg/clients-agent-message-rh1351272
-rw-r--r-- | clients/common/nm-secret-agent-simple.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clients/common/nm-secret-agent-simple.c b/clients/common/nm-secret-agent-simple.c index 2d301947cd..550fefa809 100644 --- a/clients/common/nm-secret-agent-simple.c +++ b/clients/common/nm-secret-agent-simple.c @@ -753,6 +753,10 @@ nm_secret_agent_simple_enable (NMSecretAgentSimple *self, const char *path) GList *requests, *iter; gs_free char *path_full = NULL; + /* The path is only used to match a request_id with the current + * connection. Since the request_id is "${CONNECTION_PATH}/${SETTING}", + * add a trailing '/' to the path to match the full connection path. + */ path_full = path ? g_strdup_printf ("%s/", path) : NULL; if (g_strcmp0 (path_full, priv->path) != 0) { |