Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The function :func:`os.link` noq raises if *follow_symlinks* is ``False``
and the :c:func:`linkat` function is not available on the platform. Patch
by Pablo Galindo.
3 changes: 3 additions & 0 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3731,6 +3731,9 @@ os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
if ((src_dir_fd != DEFAULT_DIR_FD) || (dst_dir_fd != DEFAULT_DIR_FD)) {
argument_unavailable_error("link", "src_dir_fd and dst_dir_fd");
return NULL;
} else if (!follow_symlinks) {
argument_unavailable_error("link", "follow_symlinks");
return NULL;
}
#endif

Expand Down