summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-06-28 18:37:15 +0200
committerLennart Poettering <lennart@poettering.net>2013-06-28 18:37:15 +0200
commit11ddb6f48e367ae4b51c31d199b28f5be041a301 (patch)
tree58c7f86aab5954dfc19c8a8a5830fa1ded432f06 /src/core
parentcda4380d9ffb18f626ba1c146e270e0e664f6739 (diff)
main: fix loading of default target
Diffstat (limited to 'src/core')
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 102cc3b315..2bd1efd5d0 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1679,7 +1679,7 @@ int main(int argc, char *argv[]) {
log_error("Failed to load rescue target: %s", bus_error(&error, r));
dbus_error_free(&error);
goto finish;
- } else if (target->load_state == UNIT_ERROR || target->load_state == UNIT_ERROR) {
+ } else if (target->load_state == UNIT_ERROR || target->load_state == UNIT_NOT_FOUND) {
log_error("Failed to load rescue target: %s", strerror(-target->load_error));
goto finish;
} else if (target->load_state == UNIT_MASKED) {