[issue32457] Windows Python cannot handle an early PATH entry containing ".." and python.exe
Eryk Sun
report at bugs.python.org
Fri Jan 5 04:25:46 EST 2018
Eryk Sun <eryksun at gmail.com> added the comment:
For extra measure, you may want to normalize `prefix` prior to calculating its length n in gotlandmark(). Then it would be reliable to truncate it via `prefix[n] = '\0'` after joining with `landmark`. Or at least add a comment there or in the calling function, search_for_prefix(), that gotlandmark assumes the current value of `prefix` is a canonical, normalized path.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32457>
_______________________________________
More information about the Python-bugs-list
mailing list