From 3e495a6651609d0a45b62aab5c3ed5a3b40e11ab Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Wed, 28 Jan 2015 21:30:06 -0500 Subject: 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 --- src/systemctl/systemctl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/systemctl') 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; -- cgit v1.2.3-54-g00ecf