diff options
author | Daniel Wagner <wagi@monom.org> | 2019-12-08 16:38:12 +0100 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2019-12-21 14:41:23 +0100 |
commit | 7f1bd28aac9957b79356b369cc62879c2d3e18d6 (patch) | |
tree | 5f94e51971b8bcea8d426e3183130601bf3470df /client/vpnconnections.c | |
parent | f2cd44c1251b92fe4ceda1f540ad7f575441fc10 (diff) | |
download | connman-7f1bd28aac9957b79356b369cc62879c2d3e18d6.tar.gz |
client: Prefix VPN serives identifiers with "vpn_"
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.
Diffstat (limited to 'client/vpnconnections.c')
-rw-r--r-- | client/vpnconnections.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/vpnconnections.c b/client/vpnconnections.c index d7bcbfee..7cef6bbe 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) |