mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
systemctl: fix incorrect "need reload" on cat (#4535)
Reported by @evverx in #4493.
This commit is contained in:
parent
32e134c19f
commit
5b9635d166
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user