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

Unified Diff: runtime/bin/file_linux.cc

Issue 1883293005: Allow opening a named pipe on MacOS and Linux. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | runtime/bin/file_macos.cc » ('j') | runtime/bin/file_macos.cc » ('J')
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 309971531c94050179c43745ca745f0f6d541a4b..28d10682719f466e75d2ddc09e0095e6074bf462 100644
--- a/runtime/bin/file_linux.cc
+++ b/runtime/bin/file_linux.cc
@@ -156,7 +156,7 @@ File* File::ScopedOpen(const char* name, FileOpenMode mode) {
struct stat64 st;
if (TEMP_FAILURE_RETRY(stat64(name, &st)) == 0) {
// Only accept regular files and character devices.
rmacnak 2016/04/15 17:17:29 regular files, character devices and pipes
zra 2016/04/15 18:19:14 Done.
- if (!S_ISREG(st.st_mode) && !S_ISCHR(st.st_mode)) {
+ if (!S_ISREG(st.st_mode) && !S_ISCHR(st.st_mode) && !S_ISFIFO(st.st_mode)) {
errno = (S_ISDIR(st.st_mode)) ? EISDIR : ENOENT;
return NULL;
}
« no previous file with comments | « no previous file | runtime/bin/file_macos.cc » ('j') | runtime/bin/file_macos.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698