chiark / gitweb /
core/execute: report invalid environment variables from files
authorHarald Hoyer <harald@redhat.com>
Wed, 17 Apr 2013 13:25:02 +0000 (15:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 17 Apr 2013 13:31:45 +0000 (15:31 +0200)
commitebc05a09ad6d1672cf4f426ee4252cf495daa139
tree1373481138158eddd498d4c536dd8baed35aa821
parentd2a514b8388e77e3ef228070422b7b73af2b4f10
core/execute: report invalid environment variables from files

Because "export key=val" is not supported by systemd, an error is logged
where the invalid assignment is coming from.

Introduce strv_env_clean_log() to log invalid environment assignments,
where logging is possible and allowed.

parse_env_file_internal() is modified to allow WHITESPACE in keys, to
report the issues later on.
src/core/execute.c
src/shared/env-util.c
src/shared/env-util.h
src/shared/fileio.c
src/test/test-fileio.c