systemctl: fix incorrect "need reload" on cat (#4535)

Reported by @evverx in #4493.
This commit is contained in:
Lucas Werkmeister 2016-11-02 23:12:03 +01:00 committed by Lennart Poettering
parent 32e134c19f
commit 5b9635d166
1 changed files with 1 additions and 1 deletions

View File

@ -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"