summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-08 18:21:52 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-08 18:21:52 +0200
commit6daf4f9001d87da9e92c04ff606b454c209f0951 (patch)
tree1b274eeb9fe507c43ef8e7e716e28e392227bae8 /src/manager.c
parent169c1bda807d183a362b47efe0b5b56e9320e430 (diff)
unit: rename 'banned' load state to 'masked'
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/manager.c b/src/manager.c
index 7e9075aad6..537ff2e39d 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -1400,7 +1400,7 @@ static int transaction_add_job_and_dependencies(
if (unit->meta.load_state != UNIT_LOADED &&
unit->meta.load_state != UNIT_ERROR &&
- unit->meta.load_state != UNIT_BANNED) {
+ unit->meta.load_state != UNIT_MASKED) {
dbus_set_error(e, BUS_ERROR_LOAD_FAILED, "Unit %s is not loaded properly.", unit->meta.id);
return -EINVAL;
}
@@ -1414,8 +1414,8 @@ static int transaction_add_job_and_dependencies(
return -EINVAL;
}
- if (type != JOB_STOP && unit->meta.load_state == UNIT_BANNED) {
- dbus_set_error(e, BUS_ERROR_BANNED, "Unit %s is banned.", unit->meta.id);
+ if (type != JOB_STOP && unit->meta.load_state == UNIT_MASKED) {
+ dbus_set_error(e, BUS_ERROR_MASKED, "Unit %s is masked.", unit->meta.id);
return -EINVAL;
}