Navigation Menu

Skip to content

Commit

Permalink
Add missing file mode
Browse files Browse the repository at this point in the history
Pointed out by Susumu Yata. Thanks!!!
  • Loading branch information
kou committed Apr 12, 2017
1 parent a1d48c2 commit cd9c602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/file_lock.c
Expand Up @@ -73,7 +73,7 @@ grn_file_lock_acquire(grn_ctx *ctx,
FILE_ATTRIBUTE_NORMAL,
NULL);
#else /* WIN32 */
file_lock->fd = open(file_lock->path, O_CREAT | O_EXCL);
file_lock->fd = open(file_lock->path, O_CREAT | O_EXCL, S_IRWUSR | S_IWUSR);
#endif
if (!GRN_FILE_LOCK_IS_INVALID(file_lock)) {
break;
Expand Down

0 comments on commit cd9c602

Please sign in to comment.