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

Unified Diff: runtime/bin/file_linux.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/eventhandler.h ('k') | runtime/bin/file_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_linux.cc
diff --git a/runtime/bin/file_linux.cc b/runtime/bin/file_linux.cc
index ff801adf8fe7efe5e4443ea0868e38bb69d8bea1..d8a9ececa78f5f2173ddd4c342d9e437c0a957b9 100644
--- a/runtime/bin/file_linux.cc
+++ b/runtime/bin/file_linux.cc
@@ -451,6 +451,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/eventhandler.h ('k') | runtime/bin/file_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698