]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 62088] Avoid re-exec due to stdin.
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sat, 26 Feb 2022 22:12:03 +0000 (17:12 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 27 Feb 2022 23:00:47 +0000 (18:00 -0500)
commit40a6751abfc7317d9f0201448db0bf924d1a30ee
treeed98ae0c54c2372c9ed83647bf5cd048d78b9c75
parent1bc35a7ae729989f691a988bca1ef1f1940c99a5
[SV 62088] Avoid re-exec due to stdin.

The fix for SV 60595 causes make to re-execute when the makefile is
read from stdin.  E.g.
    $ printf 'all:; $(info hello)' | make -sf -

Reported by Sergei Trofimovich <siarheit@google.com>
Test added by Paul Smith <psmith@gnu.org>

* src/main.c (main): Set the mtime of the stdin temporary file.
* tests/scripts/features/reinvoke: Add a test.
src/main.c
tests/scripts/features/reinvoke