diff --git a/src/platform_linux.cc b/src/platform_linux.cc index 1e7b37bc..f2d7dd9d 100644 --- a/src/platform_linux.cc +++ b/src/platform_linux.cc @@ -335,7 +335,7 @@ bool IsSymLink(const std::string& path) { struct stat buf; int result; result = lstat(path.c_str(), &buf); - return result == 0; + return S_ISLNK(buf.st_mode); } std::vector GetPlatformClangArguments() {