system/helpers.cpp: add more possible exexutable paths

This commit is contained in:
2014-11-24 01:01:33 +01:00
parent 9491d72edd
commit 6fc8d1bb9f

View File

@@ -340,7 +340,7 @@ std::string find_executable(const char *name)
if (tmpPath)
path = strdupa(tmpPath);
else
path = strdupa("/bin:/usr/bin:/sbin:/usr/sbin");
path = strdupa("/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin");
if (name[0] == '/') { /* full path given */
if (!access(name, X_OK) && !stat(name, &s) && S_ISREG(s.st_mode))
return std::string(name);