Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: runtime/bin/file_macos.cc

Issue 1293533002: DO NOT SUBMIT: Unix domain sockets. From CL 1061283003. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Added Mac OS fix Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/file_linux.cc ('k') | runtime/bin/io_natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_macos.cc
diff --git a/runtime/bin/file_macos.cc b/runtime/bin/file_macos.cc
index ddc19cc029794e899f4c336332d2dcb251ebdcdd..bee67c4f03ab1548b45968988813afffe19b123e 100644
--- a/runtime/bin/file_macos.cc
+++ b/runtime/bin/file_macos.cc
@@ -417,6 +417,7 @@ File::Type File::GetType(const char* pathname, bool follow_links) {
if (S_ISDIR(entry_info.st_mode)) return File::kIsDirectory;
if (S_ISREG(entry_info.st_mode)) return File::kIsFile;
if (S_ISLNK(entry_info.st_mode)) return File::kIsLink;
+ if (S_ISSOCK(entry_info.st_mode)) return File::kIsFile; // HACK.
return File::kDoesNotExist;
}
« no previous file with comments | « runtime/bin/file_linux.cc ('k') | runtime/bin/io_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698