Index: base/platform_file_posix.cc |
diff --git a/base/platform_file_posix.cc b/base/platform_file_posix.cc |
index 4b744feb450ff9b2270330066cf5ef799594cf73..4d2ac46816181730d6afb5f2c3d9f2fca2ab544c 100644 |
--- a/base/platform_file_posix.cc |
+++ b/base/platform_file_posix.cc |
@@ -84,7 +84,8 @@ PlatformFile CreatePlatformFile(const FilePath& name, int flags, |
} |
} |
- if (created && (descriptor > 0) && (flags & PLATFORM_FILE_CREATE_ALWAYS)) |
+ if (created && (descriptor > 0) && |
+ (flags & (PLATFORM_FILE_CREATE_ALWAYS | PLATFORM_FILE_CREATE))) |
*created = true; |
if ((descriptor > 0) && (flags & PLATFORM_FILE_DELETE_ON_CLOSE)) { |