chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: fix return value from cat
[elogind.git]
/
src
/
systemctl
/
systemctl.c
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index 3e6a6883f6ec2509b5532a7947f83d53bd8f6008..327eb85ca1682fd4ee2989ba8b75fab4ddada4ac 100644
(file)
--- 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) {
}
static int show(sd_bus *bus, char **args) {