]> git.lizzy.rs Git - rust.git/commit
Don't use posix_spawn() if PATH was modified in the environment.
authorBryan Drewery <bryan@shatow.net>
Mon, 19 Mar 2018 22:40:09 +0000 (15:40 -0700)
committerBryan Drewery <bryan@shatow.net>
Mon, 19 Mar 2018 22:40:09 +0000 (15:40 -0700)
commit6212904dd800864ca20ede8690fc827a1169fa26
tree81e4910d6abcf523fc599fcc3c926c4813d9c11d
parent00dac20e017d321b9999b04fd6d3132c4a21a388
Don't use posix_spawn() if PATH was modified in the environment.

The expected behavior is that the environment's PATH should be used
to find the process.  posix_spawn() could be used if we iterated
PATH to search for the binary to execute.  For now just skip
posix_spawn() if PATH is modified.
src/libstd/sys/unix/process/process_common.rs
src/libstd/sys/unix/process/process_unix.rs
src/libstd/sys_common/process.rs