]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: ignore invalid variables in import-environment 17188/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 28 Sep 2020 15:29:34 +0000 (17:29 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 12 Oct 2020 16:27:20 +0000 (18:27 +0200)
commita4ccce22d9552dc74b6916cc5ec57f2a0b686b4f
treefdc9764a20e9554df2bf4b52d00477794841442d
parentb45c068dd8fac7661a15e99e7cf699ff06010b13
systemctl: ignore invalid variables in import-environment

When doing import-environment, we shouldn't fail if some assignment is invalid.
OTOH, if the invalid assignment is specified as a positional argument, we should
keep failing.

This would also fix https://bugzilla.redhat.com/show_bug.cgi?id=1754395, by
ignoring certain variables which are not important in that scenario. It seems
like the right thing to do in general.
src/systemctl/systemctl-set-environment.c