ninjatool: Fixes E$$: in generated Makefile.ninja
commit74938f0645e25f191247af55d7bf27d9c62f4768
authorYonggang Luo <luoyonggang@gmail.com>
Wed, 26 Aug 2020 15:10:01 +0000 (26 23:10 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Aug 2020 16:54:13 +0000 (27 18:54 +0200)
tree005ddb50b37fb7128afb40c0a11cf5220cf1a959
parent90756b2fb3b95df754008024e84e7f164718bf2f
ninjatool: Fixes E$$: in generated Makefile.ninja

Even though SIMPLE_PATH_RE is used with re.match (which anchors the
match implictly to the beginning of the string) it also needs an
end-of-string anchor in order to match the full path token.

Otherwise, the match would succeed incorrectly for $ and : characters
contained in the path, for example if the path starts with C:/ or E:/.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/ninjatool.py