[issue19948] POSIX semantics of PATH search in execvpe is not respected

Antti Haapala report at bugs.python.org
Mon Nov 21 04:29:50 EST 2016


Antti Haapala added the comment:

While at it, another POSIX semantic that execvp doesn't support is the behaviour when `PATH` is not set, e.g. on Linux, the search path is set to '.', followed by confstr(_CS_PATH). It is debatable whether this is desired (having current directory first in search path doesn't exactly sound right, which is also acknowledged by Linux man pages: 

NOTES
       On some other systems, the default path (used when the environment
       does not contain the variable PATH) has the current working direc‐
       tory  listed after /bin and /usr/bin, as an anti-Trojan-horse mea‐
       sure.  Linux uses here the traditional "current  directory  first"
       default path.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19948>
_______________________________________


More information about the Python-bugs-list mailing list