| Index: runtime/bin/platform_fuchsia.cc
|
| diff --git a/runtime/bin/platform_fuchsia.cc b/runtime/bin/platform_fuchsia.cc
|
| index 0a14909a621f43e9d2746a0f08c3fa9e3e2fc603..b322b439acf9c309ba7482863849e346f3130d5c 100644
|
| --- a/runtime/bin/platform_fuchsia.cc
|
| +++ b/runtime/bin/platform_fuchsia.cc
|
| @@ -92,12 +92,12 @@ const char* Platform::ResolveExecutablePath() {
|
| if (executable_name == NULL) {
|
| return NULL;
|
| }
|
| - if ((executable_name[0] == '/') && File::Exists(executable_name)) {
|
| - return File::GetCanonicalPath(executable_name);
|
| + if ((executable_name[0] == '/') && File::Exists(NULL, executable_name)) {
|
| + return File::GetCanonicalPath(NULL, executable_name);
|
| }
|
| if (strchr(executable_name, '/') != NULL) {
|
| - const char* result = File::GetCanonicalPath(executable_name);
|
| - if (File::Exists(result)) {
|
| + const char* result = File::GetCanonicalPath(NULL, executable_name);
|
| + if (File::Exists(NULL, result)) {
|
| return result;
|
| }
|
| } else {
|
| @@ -112,8 +112,8 @@ const char* Platform::ResolveExecutablePath() {
|
| while ((pathcopy = strtok_r(pathcopy, ":", &save)) != NULL) {
|
| snprintf(result, PATH_MAX, "%s/%s", pathcopy, executable_name);
|
| result[PATH_MAX] = '\0';
|
| - if (File::Exists(result)) {
|
| - return File::GetCanonicalPath(result);
|
| + if (File::Exists(NULL, result)) {
|
| + return File::GetCanonicalPath(NULL, result);
|
| }
|
| pathcopy = NULL;
|
| }
|
|
|