]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 57778] Don't ignore included makefiles that can't be read
authorDmitry Goncharov <dgoncharov@users.sf.net>
Tue, 7 Sep 2021 00:20:28 +0000 (20:20 -0400)
committerPaul Smith <psmith@gnu.org>
Tue, 7 Sep 2021 00:20:28 +0000 (20:20 -0400)
commite7eb8b5962efe316b08a4a6209d2a63130d1f22f
tree70f2d72230a4d145e855b662f154764c4671ec57
parent0c2fc00544b89314643561dcb6d78f35eb98da68
[SV 57778] Don't ignore included makefiles that can't be read

If we find an included makefile but it's not readable, stop
immediately with an error rather than continuing to look in other
directories.

* src/read.c (eval_makefile): Only keep searching if the fopen error
is ENOENT, else stop and fail.
* tests/scripts/features/include: Add tests to verify this behavior.
src/read.c
tests/scripts/features/include