diff options
Diffstat (limited to 'base/platform_file_posix.cc')
-rw-r--r-- | base/platform_file_posix.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/platform_file_posix.cc b/base/platform_file_posix.cc index 4d2ac46..52b14fc 100644 --- a/base/platform_file_posix.cc +++ b/base/platform_file_posix.cc @@ -54,8 +54,9 @@ PlatformFile CreatePlatformFile(const FilePath& name, int flags, open_flags |= O_RDWR; } else if (flags & PLATFORM_FILE_WRITE) { open_flags |= O_WRONLY; - } else if (!(flags & PLATFORM_FILE_READ || - flags & PLATFORM_FILE_WRITE_ATTRIBUTES)) { + } else if (!(flags & PLATFORM_FILE_READ) && + !(flags & PLATFORM_FILE_WRITE_ATTRIBUTES) && + !(flags & PLATFORM_FILE_OPEN_ALWAYS)) { NOTREACHED(); } |