diff options
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r-- | src/lua/lua_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 6c6a4201f..4c674def8 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -1632,7 +1632,7 @@ lua_util_create_file (lua_State *L) mode = lua_tonumber (L, 2); } - fd = rspamd_file_xopen (fpath, O_RDWR|O_CREAT|O_EXCL, mode); + fd = rspamd_file_xopen (fpath, O_RDWR | O_CREAT | O_EXCL, mode, 0); if (fd == -1) { lua_pushnil (L); |