summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Werkmeister <mail@lucaswerkmeister.de>2016-11-02 23:12:03 +0100
committerLennart Poettering <lennart@poettering.net>2016-11-02 16:12:03 -0600
commit5b9635d16656090afa6c3aef52be469ff39fe247 (patch)
treeb010a9fc0808ddd55d8c0fcd21719f9e4d4f3051
parent32e134c19ff324d2f8e27ffeaa51b5a4b051e296 (diff)
systemctl: fix incorrect "need reload" on cat (#4535)
Reported by @evverx in #4493.
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index d311bbec1a..b6d66aa363 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -5272,7 +5272,7 @@ static int cat(int argc, char *argv[], void *userdata) {
else
puts("");
- if (need_daemon_reload(bus, *name))
+ if (need_daemon_reload(bus, *name) > 0) /* ignore errors (<0), this is informational output */
fprintf(stderr,
"%s# Warning: %s changed on disk, the version systemd has loaded is outdated.\n"
"%s# This output shows the current version of the unit's original fragment and drop-in files.\n"