◐ Shell
clean mode source ↗

gh-81793: always call linkat() from os.link(), if available by takluyver · Pull Request #24997 · python/cpython

and others added 3 commits

March 23, 2021 17:33
The issue with link() is that POSIX does not define its behavior
regarding symbolic links:

"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 itself."

And it is indeed implemented differently on Linux and NetBSD.

@serhiy-storchaka

serhiy-storchaka

@picnixz picnixz changed the title bpo-37612: always call linkat() from os.link(), if available gh-81793: always call linkat() from os.link(), if available

Apr 12, 2025