struct nameInfo info;
inter_ret = kdbus_NameQuery(name, dbus_connection_get_transport(connection), &info);
- if((inter_ret == 0) || (inter_ret == -ENOENT))
+ if((inter_ret == 0) || (inter_ret == -ENOENT) || (inter_ret == -ENXIO))
service_exists = (inter_ret == 0) ? TRUE : FALSE;
else
{
ret = kdbus_get_name_owner(connection, text, unique_name);
if(ret == 0)
base_name = unique_name;
- else if(ret == -ENOENT) //name has no owner
+ else if((ret == -ENOENT) || (ret == -ENXIO)) //name has no owner
{
dbus_set_error (error, DBUS_ERROR_NAME_HAS_NO_OWNER,
"Could not get owner of name '%s': no such name", text);