bpo-35755: Remove current directory from posixpath.defpath (GH-11586)
Document the change in a NEWS entry of the Security category.
This commit is contained in:
parent
228a3c99bd
commit
2c4c02f8a8
|
@ -18,7 +18,7 @@ pardir = '..'
|
||||||
extsep = '.'
|
extsep = '.'
|
||||||
sep = '/'
|
sep = '/'
|
||||||
pathsep = ':'
|
pathsep = ':'
|
||||||
defpath = ':/bin:/usr/bin'
|
defpath = '/bin:/usr/bin'
|
||||||
altsep = None
|
altsep = None
|
||||||
devnull = '/dev/null'
|
devnull = '/dev/null'
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
: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.
|
Loading…
Reference in New Issue