summaryrefslogtreecommitdiffstats
path: root/base/platform_file_posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/platform_file_posix.cc')
-rw-r--r--base/platform_file_posix.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/platform_file_posix.cc b/base/platform_file_posix.cc
index 4b744fe..4d2ac46 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)) {