summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorandrei kulakov <andrei.avk@gmail.com>2023-05-03 03:50:10 (GMT)
committerGitHub <noreply@github.com>2023-05-03 03:50:10 (GMT)
commitaf886ffa0612124598b5e8174c3b1be0f60eab38 (patch)
treee3e79405cb875e87b8cd5ce7574c0cbcd41748ca /Misc
parentc7c3a60c88de61a79ded9fdaf6bc6a29da4efb9a (diff)
downloadcpython-af886ffa0612124598b5e8174c3b1be0f60eab38.zip
cpython-af886ffa0612124598b5e8174c3b1be0f60eab38.tar.gz
cpython-af886ffa0612124598b5e8174c3b1be0f60eab38.tar.bz2
GH-89769: `pathlib.Path.glob()`: do not follow symlinks when checking for precise match (GH-29655)
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-11-19-23-37-18.bpo-45606.UW5XE1.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-11-19-23-37-18.bpo-45606.UW5XE1.rst b/Misc/NEWS.d/next/Library/2021-11-19-23-37-18.bpo-45606.UW5XE1.rst
new file mode 100644
index 0000000..531f472
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-11-19-23-37-18.bpo-45606.UW5XE1.rst
@@ -0,0 +1,5 @@
+Fixed the bug in :meth:`pathlib.Path.glob` -- previously a dangling symlink
+would not be found by this method when the pattern is an exact match, but
+would be found when the pattern contains a wildcard or the recursive
+wildcard (``**``). With this change, a dangling symlink will be found in
+both cases.