mirror of https://github.com/BOINC/boinc.git
Merge pull request #1671 from DAD-Grid/android-wrapper
Fixed wrapper execution time error in android
This commit is contained in:
commit
48f1720085
|
@ -306,9 +306,10 @@ void macro_substitute(string &str) {
|
|||
fprintf(stderr, "[DEBUG] replacing '%s' with '%s'\n", "$PWD", nt);
|
||||
#endif
|
||||
#else
|
||||
str_replace_all(str, "$PWD", getenv("PWD"));
|
||||
char cwd[1024];
|
||||
str_replace_all(str, "$PWD", getcwd(cwd, sizeof(cwd)));
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "[DEBUG] replacing '%s' with '%s'\n", "$PWD", getenv("PWD"));
|
||||
fprintf(stderr, "[DEBUG] replacing '%s' with '%s'\n", "$PWD", getcwd(cwd, sizeof(cwd)));
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue