Check object path validity during completion inside print_paths.

Closes #344

Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
This commit is contained in:
Frederic Martinsons 2021-01-24 16:46:14 +01:00 committed by Philip Withnall
parent 742e55b754
commit 43c2d747a3

View File

@ -250,6 +250,11 @@ print_paths (GDBusConnection *c,
g_printerr (_("Error: %s is not a valid name\n"), name);
goto out;
}
if (!g_variant_is_object_path (path))
{
g_printerr (_("Error: %s is not a valid object path\n"), path);
goto out;
}
error = NULL;
result = g_dbus_connection_call_sync (c,