chiark / gitweb /
Consistently use ERFKILL for masked units
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Feb 2017 23:36:09 +0000 (18:36 -0500)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000 (17:58 +0200)
commit0a1154544763e1e1ceec84b21ee87a101fbfb19a
tree7008afabec932e46ad750195ad9d891e77cb77f3
parent5aed4ca1fbd96ed4dcc785753ca46e0b1d8def3b
Consistently use ERFKILL for masked units

76ec966f0e33685f833 changed the code from ESHUTDOWN to ERFKILL, but missed one
spot in bus-common-errors.c. Fix that.

The code in transaction.c was checking for ERFKILL, but I'm not sure if this
mismatch had any effect, i.e. if there were any code paths in which the wrong
code actually made difference.

Also add comments when ESHUTDOWN is used in the journal code, so it's easy to
distinguish those cases when grepping. Standarize on the same capitalization.

(There's also a bunch of uses in sd-bus.c, but that's clearly different.)
src/libelogind/sd-bus/bus-common-errors.c