]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 61463] Don't export inherited private variables
authorPaul Smith <psmith@gnu.org>
Mon, 2 Jan 2023 16:23:09 +0000 (11:23 -0500)
committerPaul Smith <psmith@gnu.org>
Tue, 3 Jan 2023 04:02:33 +0000 (23:02 -0500)
commit8791d2b38ec916ea4206d5cae3b0036bb440c918
tree31cfa2e686c1924b26b32636fca03b4b32c9be86
parentf91b8bbb34ff210ad72bc529c9bd5c6102e27adc
[SV 61463] Don't export inherited private variables

If a parent target has an exported variable that is private, don't
export it in child targets.

* NEWS: Mention this change.
* src/variable.c (target_environment): Ignore private inherited
variables.
* tests/thelp.pl: Add a new "env" operation to show env.var. values.
* tests/scripts/variables/private: Verify this new behavior.
NEWS
src/variable.c
tests/scripts/variables/private
tests/thelp.pl