[issue37612] os.link(..., follow_symlinks=True) broken on Linux

2019-07-18 Thread Jo Henke
Change by Jo Henke : -- keywords: +patch pull_requests: +14634 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14843 ___ Python tracker <https://bugs.python.org/issu

[issue37612] os.link(..., follow_symlinks=True) broken on Linux

2019-07-18 Thread Jo Henke
Jo Henke added the comment: The problem that POSIX does not define the behavior of link() regarding symlinks (and that Unix implementations differ indeed), is independent from Python's os.link() defaults. Since it makes no sense to call link(), when linkat() is available, I propose

[issue37612] os.link(..., follow_symlinks=True) broken on Linux

2019-07-17 Thread Jo Henke
New submission from Jo Henke : Regarding link() POSIX states (https://pubs.opengroup.org/onlinepubs/9699919799/functions/link.html): "If path1 names a symbolic link, it is implementation-defined whether link() follows the symbolic link, or creates a new link to the symbolic link i