summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-12-23 10:53:48 (GMT)
committerGitHub <noreply@github.com>2023-12-23 10:53:48 (GMT)
commit80b2bad2c2c4e34ee6bd8e6f1f9360f97aed6551 (patch)
tree1b7e6af21d25b0cabeb7beff843f86c3923471fd /Misc
parent0bd134d15f48dc5e284f13f1545548cabf50c792 (diff)
downloadcpython-80b2bad2c2c4e34ee6bd8e6f1f9360f97aed6551.zip
cpython-80b2bad2c2c4e34ee6bd8e6f1f9360f97aed6551.tar.gz
cpython-80b2bad2c2c4e34ee6bd8e6f1f9360f97aed6551.tar.bz2
[3.11] gh-113188: Fix shutil.copymode() and shutil.copystat() on Windows (GH-113285) (GH-113426)
Previously they worked differenly if dst is a symbolic link: they modified the permission bits of dst itself rather than the file it points to if follow_symlinks is true or src is not a symbolic link, and did nothing if follow_symlinks is false and src is a symbolic link. (cherry picked from commit c7874bb56f862dd96a9a74b809dbea5688fa6c1c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-12-15-20-29-49.gh-issue-113188.AvoraB.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-12-15-20-29-49.gh-issue-113188.AvoraB.rst b/Misc/NEWS.d/next/Library/2023-12-15-20-29-49.gh-issue-113188.AvoraB.rst
new file mode 100644
index 0000000..17c6957
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-12-15-20-29-49.gh-issue-113188.AvoraB.rst
@@ -0,0 +1,6 @@
+Fix :func:`shutil.copymode` and :func:`shutil.copystat` on Windows.
+Previously they worked differenly if *dst* is a symbolic link:
+they modified the permission bits of *dst* itself
+rather than the file it points to if *follow_symlinks* is true or *src* is
+not a symbolic link, and did not modify the permission bits if
+*follow_symlinks* is false and *src* is a symbolic link.