From: Zbigniew Jędrzejewski-Szmek Date: Tue, 17 Dec 2013 03:33:45 +0000 (-0500) Subject: systemctl: fix return value from cat X-Git-Tag: v209~878 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=c0ea486f6e14dcd12390fc674e4ee33426444a3a systemctl: fix return value from cat --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 3e6a6883f..327eb85ca 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -3821,7 +3821,7 @@ static int cat(sd_bus *bus, char **args) { } } - return r; + return r < 0 ? r : 0; } static int show(sd_bus *bus, char **args) {