system/helpers.cpp: add more possible exexutable paths

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6fc8d1bb9f
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-24 (Mon, 24 Nov 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2014-11-24 01:01:33 +01:00
parent 561e24a1f9
commit 6d07c52a86

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);