96bd006b89
- Add early-sync-shutdown.patch: start sync just when shutdown.target is beginning - Update parse-multiline-env-file.patch to better handle continuing lines. - Add handle-HOSTNAME.patch: handle /etc/HOSTNAME (bnc#803653). - Add systemctl-print-wall-on-if-successful.patch: only print on wall if successful. - Add improve-bash-completion.patch: improve bash completion. OBS-URL: https://build.opensuse.org/request/show/155556 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=348
26 lines
861 B
Diff
26 lines
861 B
Diff
From f6bb13ab8db51aaedc825fec2f0458b60309b27a Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Date: Thu, 14 Feb 2013 14:08:09 -0500
|
|
Subject: [PATCH] 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
|
|
---
|
|
src/systemctl/systemctl.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: systemd-195/src/systemctl/systemctl.c
|
|
===================================================================
|
|
--- systemd-195.orig/src/systemctl/systemctl.c
|
|
+++ systemd-195/src/systemctl/systemctl.c
|
|
@@ -1825,7 +1825,7 @@ static int start_special(DBusConnection
|
|
}
|
|
|
|
r = start_unit(bus, args);
|
|
- if (r >= 0)
|
|
+ if (r == EXIT_SUCCESS)
|
|
warn_wall(a);
|
|
|
|
return r;
|