]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: consistenly fail if parsing the environment fails
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 27 Sep 2019 11:58:06 +0000 (13:58 +0200)
committerFilipe Brandenburger <filbranden@gmail.com>
Tue, 1 Oct 2019 17:21:13 +0000 (10:21 -0700)
commit490486842b6521104b594c511ca912504f61a8f3
tree56b036bdc41129701547ba5206e1a99983d6a402
parent75b0d8b89d6e86319e75eaead3f4b0d187a66729
nspawn: consistenly fail if parsing the environment fails

We would parse the environment twice (to re-apply settings after reading
config from disk), but we would not check the return code first time.
This means that for some settings we would ignore invalid values, while
for others, we'd fail at some point.

Let's just consistently fail. Those environment variables define important
aspects of behaviour, and it is better for the user if we ignore invalid
values. (Unknown settings are still ignored, so forward compatibility is
maintained.)
src/nspawn/nspawn.c