Skip to content
Snippets Groups Projects
Unverified Commit 2c4c02f8 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub
Browse files

bpo-35755: Remove current directory from posixpath.defpath (GH-11586)

Document the change in a NEWS entry of the Security category.
parent 228a3c99
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@
extsep = '.'
sep = '/'
pathsep = ':'
defpath = ':/bin:/usr/bin'
defpath = '/bin:/usr/bin'
altsep = None
devnull = '/dev/null'
......
:func:`shutil.which` now uses ``os.confstr("CS_PATH")`` if available and if the
:envvar:`PATH` environment variable is not set. Remove also the current
directory from :data:`posixpath.defpath`. On Unix, :func:`shutil.which` and the
:mod:`subprocess` module no longer search the executable in the current
directory if the :envvar:`PATH` environment variable is not set.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment