chiark / gitweb /
resolved: add errno mapping for BUS_ERROR_CONNECTION_FAILURE
authorLennart Poettering <lennart@poettering.net>
Tue, 29 Dec 2015 17:55:58 +0000 (18:55 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:15 +0000 (15:22 +0200)
This was missing when the error type was added in
ac720200b7e5b80cc4985087e38f3452e5b3b080.

src/libelogind/sd-bus/bus-common-errors.c

index 7dd726f..e825cf6 100644 (file)
@@ -73,6 +73,7 @@ BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map bus_common_errors[] = {
         SD_BUS_ERROR_MAP(BUS_ERROR_NO_RESOURCES,                 ENOMEM),
         SD_BUS_ERROR_MAP(BUS_ERROR_CNAME_LOOP,                   EDEADLK),
         SD_BUS_ERROR_MAP(BUS_ERROR_ABORTED,                      ECANCELED),
+        SD_BUS_ERROR_MAP(BUS_ERROR_CONNECTION_FAILURE,           ECONNREFUSED),
 
         SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_TRANSFER,             ENXIO),
         SD_BUS_ERROR_MAP(BUS_ERROR_TRANSFER_IN_PROGRESS,         EBUSY),