Chromium Code Reviews| Index: base/platform_file_posix.cc |
| =================================================================== |
| --- base/platform_file_posix.cc (revision 60330) |
| +++ base/platform_file_posix.cc (working copy) |
| @@ -54,7 +54,8 @@ |
| open_flags |= O_RDWR; |
| } else if (flags & PLATFORM_FILE_WRITE) { |
| open_flags |= O_WRONLY; |
| - } else if (!(flags & PLATFORM_FILE_READ)) { |
| + } else if (!(flags & PLATFORM_FILE_READ || |
| + flags & PLATFORM_FILE_WRITE_ATTRIBUTES)) { |
| NOTREACHED(); |
| } |