summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-03-11 17:19:35 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-03-11 22:19:22 +0900
commit321291d82bd36834308aa99dffe4b62d1c4f68b2 (patch)
tree3331eabcaae1f526c9c623324b17a61d14f4f3b3 /src/systemctl
parent7a2a7f2c00b1cbba2687bea359152a94565aad59 (diff)
downloadsystemd-321291d82bd36834308aa99dffe4b62d1c4f68b2.tar.gz
systemctl-edit: invert one error check
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl-edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c
index ad8c96bd3a..5f42dc239f 100644
--- a/src/systemctl/systemctl-edit.c
+++ b/src/systemctl/systemctl-edit.c
@@ -367,9 +367,9 @@ int verb_edit(int argc, char *argv[], void *userdata) {
if (!arg_no_reload && !install_client_side()) {
r = daemon_reload(ACTION_RELOAD, /* graceful= */ false);
- if (r > 0)
- r = 0;
+ if (r < 0)
+ return r;
}
- return r;
+ return 0;
}