Skip to content

Commit 5e7d5b4

Browse files
alexeyvohanumantmk
authored andcommitted
Pass mode parameter on windows
Closes #134
1 parent 9a11d6e commit 5e7d5b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongoc/mongoc-stream-file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ mongoc_stream_file_new_for_path (const char *path, /* IN */
197197
bson_return_val_if_fail (path, NULL);
198198

199199
#ifdef _WIN32
200-
if (_sopen_s (&fd, path, (flags | _O_BINARY), _SH_DENYNO, 0) != 0) {
200+
if (_sopen_s (&fd, path, (flags | _O_BINARY), _SH_DENYNO, mode) != 0) {
201201
fd = -1;
202202
}
203203
#else

0 commit comments

Comments
 (0)