summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-28 21:30:06 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-28 21:56:10 -0500
commit3e495a6651609d0a45b62aab5c3ed5a3b40e11ab (patch)
treec885e31215ca7c16d1ff05ec10810e7e75c88dcc /src
parent590ba75f32ef6557f57ddfd8e8bebea452bc0b7e (diff)
systemctl: refuse --host with cat
This might be fixed one day, but for now it's better to fail. https://bugzilla.redhat.com/show_bug.cgi?id=1186952
Diffstat (limited to 'src')
-rw-r--r--src/systemctl/systemctl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 66c0b9949e..11b0be001f 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -4563,6 +4563,11 @@ static int cat(sd_bus *bus, char **args) {
assert(args);
+ if (arg_host) {
+ log_error("Option --host cannot be used with 'cat'");
+ return -EINVAL;
+ }
+
r = init_home_and_lookup_paths(&user_home, &user_runtime, &lp);
if (r < 0)
return r;