X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsystemctl%2Fsystemctl.c;h=11b0be001f69053a621fa8c3f1b1bf208f03ac56;hp=66c0b9949e44dd3b3e06c7ac547a0bebbca2cd58;hb=3e495a6651609d0a45b62aab5c3ed5a3b40e11ab;hpb=590ba75f32ef6557f57ddfd8e8bebea452bc0b7e diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 66c0b9949..11b0be001 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;