diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-16 22:33:45 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-16 23:21:51 -0500 |
commit | c0ea486f6e14dcd12390fc674e4ee33426444a3a (patch) | |
tree | b682a0ae89fbaecf1b6b4c3a3c39681108304305 /src | |
parent | 15f2a3a9930eb42e8a858c601f198431979b0b60 (diff) |
systemctl: fix return value from cat
Diffstat (limited to 'src')
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 3e6a6883f6..327eb85ca1 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) { |