From: Zbigniew Jędrzejewski-Szmek Date: Thu, 14 Feb 2013 19:08:09 +0000 (-0500) Subject: systemctl: print wall message only if successful X-Git-Tag: v198~232 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f6bb13ab8db51aaedc825fec2f0458b60309b27a;hp=cec7eda533d6ce74667c712de3bbad29214c1030;p=elogind.git 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 --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 70fd15562..4c91a18b8 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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;