Message340420
I modified posixpath.defpath, shutil.which() and distutils.spawn.find_executable() in 3.7 and master (future Python 3.8) branches. I close the issue. Thanks everybody for the review and helping me to collect info about corner cases!
I chose to also change Python 3.7. IMHO there is a low risk of breaking applications: I expect that few users run Python with no PATH environment variable *and* expect that Python looks for programs in the current directory. But it enhances the security a little bit.
For Python 2.7... well, I don't think that this issue is important enough to justify a backport. I prefer to do nothing rather than having to deal with unhappy users complaining that Python 2.7 changed broke their application in a minor 2.7.x release :-) Even if, again, the risk of regression is very low. |
|
| Date |
User |
Action |
Args |
| 2019-04-17 16:53:09 | vstinner | set | recipients:
+ vstinner, gregory.p.smith, giampaolo.rodola, christian.heimes, jwilk, serhiy.storchaka, izbyshev |
| 2019-04-17 16:53:09 | vstinner | set | messageid: <1555519989.13.0.668846566926.issue35755@roundup.psfhosted.org> |
| 2019-04-17 16:53:09 | vstinner | link | issue35755 messages |
| 2019-04-17 16:53:08 | vstinner | create | |
|