summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library
diff options
context:
space:
mode:
authorBruno P. Kinoshita <kinow@users.noreply.github.com>2019-11-27 01:10:37 (GMT)
committerGiampaolo Rodola <g.rodola@gmail.com>2019-11-27 01:10:37 (GMT)
commit9bbcbc9f6dfe1368fe7330b117707f828e6a2c18 (patch)
tree8a4c4de3fd1e0f90885006c6b26c51bb3ad0df3c /Misc/NEWS.d/next/Library
parentc7c01ab1e5415b772c68e15f1aba51e520010830 (diff)
downloadcpython-9bbcbc9f6dfe1368fe7330b117707f828e6a2c18.zip
cpython-9bbcbc9f6dfe1368fe7330b117707f828e6a2c18.tar.gz
cpython-9bbcbc9f6dfe1368fe7330b117707f828e6a2c18.tar.bz2
bpo-38688, shutil.copytree: consume iterator and create list of entries to prevent infinite recursion (GH-17098)
Diffstat (limited to 'Misc/NEWS.d/next/Library')
-rw-r--r--Misc/NEWS.d/next/Library/2019-11-22-10-45-03.bpo-38668.iKx23z.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-11-22-10-45-03.bpo-38668.iKx23z.rst b/Misc/NEWS.d/next/Library/2019-11-22-10-45-03.bpo-38668.iKx23z.rst
new file mode 100644
index 0000000..28b82ab
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-11-22-10-45-03.bpo-38668.iKx23z.rst
@@ -0,0 +1,5 @@
+Calling func:`shutil.copytree` to copy a directory tree from one directory
+to another subdirectory resulted in an endless loop and a RecursionError. A
+fix was added to consume an iterator and create the list of the entries to
+be copied, avoiding the recursion for newly created directories. Patch by
+Bruno P. Kinoshita.