summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/src/xmake/io/filelock_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/io/filelock_open.c b/core/src/xmake/io/filelock_open.c
index 582c447cf..1cee501ed 100644
--- a/core/src/xmake/io/filelock_open.c
+++ b/core/src/xmake/io/filelock_open.c
@@ -50,7 +50,7 @@ tb_int_t xm_io_filelock_open(lua_State* lua)
tb_long_t tryn = 2;
tb_filelock_ref_t lock = tb_null;
while (!lock && tryn-- > 0)
- lock = tb_filelock_init_from_path(path, tb_file_info(path, tb_null)? TB_FILE_MODE_RO : TB_FILE_MODE_RW | TB_FILE_MODE_CREAT);
+ lock = tb_filelock_init_from_path(path, tb_file_info(path, tb_null)? TB_FILE_MODE_RW : TB_FILE_MODE_RW | TB_FILE_MODE_CREAT);
if (lock) xm_lua_pushpointer(lua, (tb_pointer_t)lock);
else lua_pushnil(lua);
return 1;