[New-bugs-announce] [issue43875] path.glob with ** does not always detect symlink loops

Reuben Thomas report at bugs.python.org
Fri Apr 16 16:08:19 EDT 2021


New submission from Reuben Thomas <rrt at sc3d.org>:

Example session:

$ mkdir foo
$ cd foo
$ ln -s .. bar
$ ln -s .. baz
$ python3.9
Python 3.9.0+ (default, Oct 20 2020, 08:43:38) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from glob import glob
>>> glob('**/README', recursive=True)
[HANG]

Removing either of the symlinks fixes the hang.

----------
messages: 391253
nosy: rrt
priority: normal
severity: normal
status: open
title: path.glob with ** does not always detect symlink loops

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43875>
_______________________________________


More information about the New-bugs-announce mailing list