[issue27002] Support different modes in posixpath.realpath()

2021-04-07 Thread Barney Gale
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'

[issue27002] Support different modes in posixpath.realpath()

2016-05-11 Thread Serhiy Storchaka
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