]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-bus/bus-common-errors: add missing error map entries
authorMike Yuan <me@yhndnzj.com>
Fri, 21 Mar 2025 00:59:03 +0000 (01:59 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 29 Mar 2025 18:51:13 +0000 (19:51 +0100)
src/libsystemd/sd-bus/bus-common-errors.c

index c66fded7f1aa165e994666916e2f1853d597c0d7..1d92803019ebdf114066b3aa6ba9164a8743d112 100644 (file)
@@ -32,6 +32,9 @@ BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map bus_common_errors[] = {
         SD_BUS_ERROR_MAP(BUS_ERROR_SCOPE_NOT_RUNNING,            EHOSTDOWN),
         SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_DYNAMIC_USER,         ESRCH),
         SD_BUS_ERROR_MAP(BUS_ERROR_NOT_REFERENCED,               EUNATCH),
+        SD_BUS_ERROR_MAP(BUS_ERROR_UNIT_BUSY,                    EBUSY),
+        SD_BUS_ERROR_MAP(BUS_ERROR_UNIT_INACTIVE,                EHOSTDOWN),
+        SD_BUS_ERROR_MAP(BUS_ERROR_FREEZE_CANCELLED,             ECANCELED),
         SD_BUS_ERROR_MAP(BUS_ERROR_FILE_DESCRIPTOR_STORE_DISABLED,
                                                                  EHOSTDOWN),
         SD_BUS_ERROR_MAP(BUS_ERROR_FROZEN_BY_PARENT,             EDEADLK),