mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user