]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journal-file.c
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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 2 Feb 2017 00:47:23 +0000 (19:47 -0500)
commitb288cdeb2d59fc2fa7b79cdcc38d9915fd3b3161
tree2918e2a7f6f9c27499fe74cad40f3d1b3513988e
parent1a68e1e543fd8f899503bec00585a16ada296ef7
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/journal/journal-file.c
src/libsystemd/sd-bus/bus-common-errors.c