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
This commit is contained in:
parent
590ba75f32
commit
3e495a6651
3
TODO
3
TODO
|
@ -16,6 +16,9 @@ Bugfixes:
|
||||||
str_split_quoted() should return a real return code, so spawn_child can
|
str_split_quoted() should return a real return code, so spawn_child can
|
||||||
report the failure properly.
|
report the failure properly.
|
||||||
|
|
||||||
|
* When systemctl --host is used, underlying ssh connection can remain open.
|
||||||
|
bus_close does not kill children?
|
||||||
|
|
||||||
External:
|
External:
|
||||||
|
|
||||||
* Fedora: add an rpmlint check that verifies that all unit files in the RPM are listed in %systemd_post macros.
|
* Fedora: add an rpmlint check that verifies that all unit files in the RPM are listed in %systemd_post macros.
|
||||||
|
|
|
@ -4563,6 +4563,11 @@ static int cat(sd_bus *bus, char **args) {
|
||||||
|
|
||||||
assert(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);
|
r = init_home_and_lookup_paths(&user_home, &user_runtime, &lp);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in New Issue