diff options
author | Elia Argentieri <elia.argentieri@openmailbox.org> | 2017-10-11 01:03:05 +0200 |
---|---|---|
committer | Elia Argentieri <elia.argentieri@openmailbox.org> | 2017-10-11 01:07:27 +0200 |
commit | 600efa03460b89a14aa7fb1aa21503d9046c8df1 (patch) | |
tree | dcb16c4d91cfcfe98f195058d9e26649c3a245a0 | |
parent | 51b41dcdbb984bdf8a1c1e29218cbdaf675c57f8 (diff) |
Use execvp instead of execv to allow OS.execute() to search through PATH.
Fix #12003.
-rw-r--r-- | drivers/unix/os_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index e0a62b316d..2a3d48746f 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -343,7 +343,7 @@ Error OS_Unix::execute(const String &p_path, const List<String> &p_arguments, bo execvp(getprogname(), &args[0]); } #else - execv(p_path.utf8().get_data(), &args[0]); + execvp(p_path.utf8().get_data(), &args[0]); #endif // still alive? something failed.. fprintf(stderr, "**ERROR** OS_Unix::execute - Could not create child process while executing: %s\n", p_path.utf8().get_data()); |