Skip to content

Commit

Permalink
change: 使用非只读模式打开/luadb应该返回失败
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Dec 27, 2024
1 parent 75b0e59 commit 01f29ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luat/vfs/luat_fs_luadb.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ FILE* luat_vfs_luadb_fopen(void* userdata, const char *filename, const char *mod
if (!strcmp("r", mode) || !strcmp("rb", mode) || !strcmp("r+", mode) || !strcmp("rb+", mode)) {
}
else {
// 暂时只警告
LLOGW("/luadb is readonly %s %s", filename, mode);
return (FILE*)NULL;
}
return (FILE*)luat_luadb_open((luadb_fs_t*)userdata, filename, 0, 0);
}
Expand Down

0 comments on commit 01f29ad

Please sign in to comment.