]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 63044] load: Update .LOADED if the setup function returns -1
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sun, 11 Sep 2022 02:42:28 +0000 (22:42 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 11 Sep 2022 02:42:28 +0000 (22:42 -0400)
commit77734be2af9bf7f99d4014e26e6505c37f8012cf
treec174ac3fe6884628d1a9486f603cf125d30c318b
parent820210ab8508955130a7618195ad8abb53c8171d
[SV 63044] load: Update .LOADED if the setup function returns -1

* src/load.c (load_file): Update .LOADED if setup returns non-0.
* tests/scripts/features/load: Change the return value based on an
environment variable.  Ensure that returning -1 still adds to
.LOADED.  Also add a test that verifies that make doesn't try to
rebuild the loaded file if -1 is returned.
src/load.c
tests/scripts/features/load