core/busname: add lookup string for BUSNAME_FAILURE_SERVICE_FAILED_PERMANENT

When a busname unit enters BUSNAME_FAILURE_SERVICE_FAILED_PERMANENT, the
serialization will not be able to look up the result as string via
busname_result_to_string(). This leads to an assertion trap during
daemon-reexec.
This commit is contained in:
Daniel Mack 2014-03-07 11:41:18 +01:00
parent 6c49212741
commit 36d239dbda
Notes: Zbigniew Jędrzejewski-Szmek 2014-03-07 08:50:29 -05:00
Backport: bugfix

View File

@ -548,6 +548,7 @@ DEFINE_STRING_TABLE_LOOKUP(busname_state, BusNameState);
static const char* const busname_result_table[_BUSNAME_RESULT_MAX] = {
[BUSNAME_SUCCESS] = "success",
[BUSNAME_FAILURE_RESOURCES] = "resources",
[BUSNAME_FAILURE_SERVICE_FAILED_PERMANENT] = "failed-permanent",
};
DEFINE_STRING_TABLE_LOOKUP(busname_result, BusNameResult);