]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 57896] Change directories before checking jobserver auth
authorPaul Smith <psmith@gnu.org>
Tue, 31 Mar 2020 02:01:09 +0000 (22:01 -0400)
committerPaul Smith <psmith@gnu.org>
Tue, 31 Mar 2020 04:33:13 +0000 (00:33 -0400)
commit1306023a4f0bbae1721a6f323d52c8e4e16ca287
treefa77a9d55f92591302b68ed7f9ec748e74cdb595
parent80b90b7866a83a7ddec7b960cd2f9917ab2a2fc6
[SV 57896] Change directories before checking jobserver auth

We want to process -C options as early as possible, before we might
write informational messages, so that Entering/Leaving messages have
the correct directory.

* src/main.c (main): Move code dealing with changing directories
before parsing of the jobserver auth flag.
* tests/scripts/features/jobserver: Test the order of enter/leave.
src/main.c
tests/scripts/features/jobserver