Bug report
Bug description:
By https://github.com/python/cpython/blob/96b392d/Modules/posixmodule.c#L4274, if follow_symlinks = True, Python will choose to call syscall link rather than linkat. However, the behavior of link will have AT_SYMLINK_FOLLOW unset, which leads an opposite behavior.
import os
os.link('link', 'another-file')
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
By https://github.com/python/cpython/blob/96b392d/Modules/posixmodule.c#L4274, if
follow_symlinks = True, Python will choose to call syscalllinkrather thanlinkat. However, the behavior oflinkwill haveAT_SYMLINK_FOLLOWunset, which leads an opposite behavior.CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs