diff options
Diffstat (limited to 'src/main/cpp/blaze_util.cc')
-rw-r--r-- | src/main/cpp/blaze_util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/cpp/blaze_util.cc b/src/main/cpp/blaze_util.cc index d8a5af6b7b..a5268e646b 100644 --- a/src/main/cpp/blaze_util.cc +++ b/src/main/cpp/blaze_util.cc @@ -41,12 +41,12 @@ const unsigned int kPostShutdownGracePeriodSeconds = 60; const unsigned int kPostKillGracePeriodSeconds = 10; -string MakeAbsolute(const string &path) { +string MakeAbsolute(const string &p) { + string path = ConvertPath(p); if (path.empty()) { return blaze_util::GetCwd(); } - - if (blaze_util::IsAbsolute(path)) { + if (blaze_util::IsDevNull(path.c_str()) || blaze_util::IsAbsolute(path)) { return path; } |