systemctl: print wall message only if successful

systemctl would write to the wall even if unsuccessful.

https://bugs.freedesktop.org/show_bug.cgi?id=60393
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-02-14 14:08:09 -05:00
parent cec7eda533
commit f6bb13ab8d

View file

@ -1841,7 +1841,7 @@ static int start_special(DBusConnection *bus, char **args) {
}
r = start_unit(bus, args);
if (r >= 0)
if (r == EXIT_SUCCESS)
warn_wall(a);
return r;