New GitHub issue #119885 from yhx-12243:<br>

<hr>

<pre>
# 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.

```python
import os
os.link('link', 'another-file')
```
<img width="501" alt="wrong implementation of follow_symlinks" src="https://github.com/python/cpython/assets/31309196/c68b14ec-8578-496d-97c7-7c30a189955b">


### CPython versions tested on:

CPython main branch

### Operating systems tested on:

Linux
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/119885">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>