summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2017-10-12 09:54:08 +0200
committerGitHub <noreply@github.com>2017-10-12 09:54:08 +0200
commitabe47eaa630d48be9e47e6c3cad6c44829bb2249 (patch)
tree277319ed6e7135baa4fd19cdb5f3be9de1045ad1 /drivers
parentb1f2c31a3639d30467316a467e3830d508e8c3ee (diff)
parent600efa03460b89a14aa7fb1aa21503d9046c8df1 (diff)
Merge pull request #12009 from Elinvention/fork/execvp
Use execvp instead of execv to allow OS.execute() to search through PATH.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/unix/os_unix.cpp2
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());