]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/env-util: drop the validation when deserializing environment
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 11 Oct 2017 07:29:30 +0000 (09:29 +0200)
committerLubomir Rintel <lkundrak@v3.sk>
Wed, 11 Oct 2017 13:01:32 +0000 (15:01 +0200)
commitea43bdd1d7c14e3695a4cc081e4ef4f964160dc1
tree4af3130057ec7cae986294dc8d4b10454f08a687
parent3f6aef0d02b8582988153c214c3172201d7ce003
basic/env-util: drop the validation when deserializing environment

The environment variables we've serialized can quite possibly contain
characters outside the set allowed by env_assignment_is_valid(). In
fact, my environment seems to contain a couple of these:

  * TERMCAP set by screen contains a '\x7f' character
  * BASH_FUNC_module%% variable has a '%' character in name

Strict check of environment variables name and value certainly makes sense for
unit files, but not so much for deserialization of values we already had
in our environment.
src/basic/env-util.c
src/test/test-env-util.c