| Index: ports/nacl-spawn/nacl_spawn.cc
|
| diff --git a/ports/nacl-spawn/nacl_spawn.cc b/ports/nacl-spawn/nacl_spawn.cc
|
| index f3a56ec22f96140e4c0c8b048080924b86dec2c6..5e0d8d22a2d633392b63cb386c9c5ab54db1395e 100644
|
| --- a/ports/nacl-spawn/nacl_spawn.cc
|
| +++ b/ports/nacl-spawn/nacl_spawn.cc
|
| @@ -55,13 +55,7 @@ struct NaClSpawnReply {
|
|
|
| static std::string GetCwd() {
|
| char cwd[PATH_MAX + 1];
|
| - // TODO(hamaji): Remove this #if and always call getcwd.
|
| - // https://code.google.com/p/naclports/issues/detail?id=109
|
| -#if defined(__GLIBC__)
|
| - if (!getwd(cwd))
|
| -#else
|
| if (!getcwd(cwd, PATH_MAX))
|
| -#endif
|
| assert(0);
|
| return cwd;
|
| }
|
| @@ -288,7 +282,6 @@ static bool ExpandShBang(std::string* prog, pp::VarDictionary* req) {
|
|
|
| static bool UseBuiltInFallback(std::string* prog, pp::VarDictionary* req) {
|
| if (prog->find('/') == std::string::npos) {
|
| - bool found = false;
|
| const char* path_env = getenv("PATH");
|
| std::vector<std::string> paths;
|
| GetPaths(path_env, &paths);
|
|
|