Skip to content

Commit 2eeb438

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <[email protected]>
1 parent 95f55e3 commit 2eeb438

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Fix :func:`os.link` on platforms (like Linux) where the
22
system :c:func:`!link` function does not follow symlinks. On Linux,
3-
it now follows symlinks by default and if
4-
``follow_symlinks=True`` is specified. On Windows, it now raises error if
5-
``follow_symlinks=True`` is passed. On macOS, it now raises error if
3+
it now follows symlinks by default or if
4+
``follow_symlinks=True`` is specified. On Windows, it now raises an error if
5+
``follow_symlinks=True`` is passed. On macOS, it now raises an error if
66
``follow_symlinks=False`` is passed and the system :c:func:`!linkat`
77
function is not available at runtime.

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4362,7 +4362,7 @@ os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
43624362
argument_unavailable_error("link", "src_dir_fd and dst_dir_fd");
43634363
return NULL;
43644364
}
4365-
/* See issue 41355: link() on Linux works like linkat without AT_SYMLINK_FOLLOW,
4365+
/* See issue 85527: link() on Linux works like linkat without AT_SYMLINK_FOLLOW,
43664366
but on Mac it works like linkat *with* AT_SYMLINK_FOLLOW. */
43674367
#if defined(MS_WINDOWS) || defined(__linux__)
43684368
if (follow_symlinks == 1) {

0 commit comments

Comments
 (0)