mirror of
https://github.com/systemd/systemd
synced 2024-10-15 20:45:09 +00:00
nss-resolve: list more errors as cause for fallback
If dbus-daemon kicks us from the bus or hangs, we should fallback too. Fixes: #12203
This commit is contained in:
parent
547fde4759
commit
8baaf650ef
|
@ -26,7 +26,9 @@ static bool bus_error_shall_fallback(sd_bus_error *e) {
|
|||
return sd_bus_error_has_name(e, SD_BUS_ERROR_SERVICE_UNKNOWN) ||
|
||||
sd_bus_error_has_name(e, SD_BUS_ERROR_NAME_HAS_NO_OWNER) ||
|
||||
sd_bus_error_has_name(e, SD_BUS_ERROR_NO_REPLY) ||
|
||||
sd_bus_error_has_name(e, SD_BUS_ERROR_ACCESS_DENIED);
|
||||
sd_bus_error_has_name(e, SD_BUS_ERROR_ACCESS_DENIED) ||
|
||||
sd_bus_error_has_name(e, SD_BUS_ERROR_DISCONNECTED) ||
|
||||
sd_bus_error_has_name(e, SD_BUS_ERROR_TIMEOUT);
|
||||
}
|
||||
|
||||
static int count_addresses(sd_bus_message *m, int af, const char **canonical) {
|
||||
|
|
Loading…
Reference in a new issue