posixpath.realpath(..., strict=True)
doesn't limit symlinks
#118441
Labels
type-bug
An unexpected behavior, bug, or error
posixpath.realpath(..., strict=True)
doesn't limit symlinks
#118441
Bug report
Bug description:
Expected
OSError(errno.ELOOP, "Too many symbolic links", path)
matching realpath on macOS:wannes@Stefans-iMac dirs % realpath s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s realpath: s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s/s: Too many levels of symbolic links
CPython versions tested on:
3.12
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: