]> Kevux Git Server - fll/commit
Bugfix: Environment should only be reset when specified, even if empty.
authorKevin Day <thekevinday@gmail.com>
Wed, 29 Sep 2021 23:34:53 +0000 (18:34 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 29 Sep 2021 23:42:11 +0000 (18:42 -0500)
commitfd69b6f58557533d4a540a15aa2194fd89f1252e
tree45220f5a8276ebff6125ee5dac14aed0a41e0f78
parentb090638c2f21d4411faf649ed9fd96e5de5c45cc
Bugfix: Environment should only be reset when specified, even if empty.

The environment is accidentally always being reset.
This results in no environment in cases where this is unexpected.
This happens in simple things such as maintenance mode boot to bash, cannot find bash because there is no PATH environment variable.

Add example environment entry and rules for testing this.
level_3/controller/c/private-common.h
level_3/controller/c/private-rule.c
level_3/controller/data/settings/example/entries/environment.entry [new file with mode: 0644]
level_3/controller/data/settings/example/rules/environment/default.rule [new file with mode: 0644]
level_3/controller/data/settings/example/rules/environment/empty.rule [new file with mode: 0644]
level_3/controller/data/settings/example/rules/environment/exported.rule [new file with mode: 0644]