summaryrefslogtreecommitdiff
path: root/src/libelogind/sd-bus/bus-container.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-09 20:28:58 +0100
committerSven Eden <yamakuzure@gmx.net>2017-05-17 15:22:16 +0200
commit9dfb8abdc29595eddf95a27811194234c81cd351 (patch)
tree322f24b48d9e80a89b24314d7fe29330744d5520 /src/libelogind/sd-bus/bus-container.h
parentc549c705f8856bec29760614bd507e53c2e2a97f (diff)
core: change internal error code for masked units from EBADR to ESHUTDOWN
This commit changes the mapping of the BUS_ERROR_UNIT_MASKED error to ESHUTDOWN. This error is used whenever the transaction engine is asked to operate on a masked unit. ESHUTDOWN is what is used for the similar case when the unit file enable/disable logic hits a masked unit file, hence is a natural candidate to be used here too. Background: before this patch both "job type not applicable" and "unit masked" where mapped to EBADR, which transaction_add_job_and_dependencies() then checked for. It actually wanted to check exclusively for the former error condition, not the latter but due to the same mapping this failed to work. This patch semi-undoes an accidental change made in caffa4ef700fdd0eadd6c0b2ef9925611672a1bc, however restores the error number to ESHUTDOWN instead of the original ENOSYS (for the reasons indicated above). To make this easier to grok for the future, I added comments to explaining which error conditions are checked for. Fixes: #2315
Diffstat (limited to 'src/libelogind/sd-bus/bus-container.h')
0 files changed, 0 insertions, 0 deletions