]> git.ipfire.org Git - thirdparty/systemd.git/commit
env-file: when resolving env vars in command lines, collect list of unset/invalid... 28164/head
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Jun 2023 15:20:49 +0000 (17:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 27 Jun 2023 11:49:46 +0000 (13:49 +0200)
commitf331434d13488425ccd8485327085d15f8f92aea
tree60feea760970e000ce33dc27e9bb5b19c7d14805
parent7658139c01395fdb83e1ba14023fb112cf220fc9
env-file: when resolving env vars in command lines, collect list of unset/invalid ones

When resolving environment variables we currently silently resolve unset
and invalid environment variables to empty strings. Let's do this
slightly less silently: log about unset and invalid env vars, but still
resolve them to an empty string.

Fixes: #27036
src/basic/env-file.c
src/basic/env-util.c
src/basic/env-util.h
src/core/execute.c
src/run/run.c
src/test/test-env-util.c