Barney Gale added the comment:
Just stumbled upon this issue after submitting a PR:
https://github.com/python/cpython/pull/25264
In my PR, `strict=False` is like `--canonicalize-missing`, and `strict=True` is
like `--canonicalize-existing`.
Looks like our patches are along similar lines. I'
New submission from Serhiy Storchaka:
For now posixpath.realpath() don't raise an exception if encounter broken link.
Instead it just lefts broken link name and following path components
unresolved. This is dangerous since broken link name can be collapsed with
following ".." and resulting val