The vpnconnections command list the available VPNs exported by
connman-vpnd without the "vpn_" prefix. While this is the correct
identifier for accessing the object via D-Bus exposed by connman-vpnd,
it is not the identifier connmand exposes. All VPN services will be
prefix in __connman_service_create_from_provider() in src/service.c
and therefore 'connmanctl services' list all VPN services with the
prefix.
To avoid confusion it's better to prefix the identifiers
vpnconnections list with "vpn_".
Reported by Christian Hewitt.
---
client/vpnconnections.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/vpnconnections.c b/client/vpnconnections.c
index d7bcbfeee9d1..7cef6bbe56c2 100644
--- a/client/vpnconnections.c
+++ b/client/vpnconnections.c
@@ -72,7 +72,7 @@ static void print_connection(char *path, DBusMessageIter *iter)
else
str = path;
- fprintf(stdout, " %c %-20s %s", state, name, str);
+ fprintf(stdout, " %c %-20s vpn_%s", state, name, str);
}
void __connmanctl_vpnconnections_list(DBusMessageIter *iter)
--
2.24.0