diff options
-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 15f6c1b81..b98feb1b2 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -1872,7 +1872,7 @@ lua_util_create_file (lua_State *L) mode = lua_tointeger (L, 2); } - fd = rspamd_file_xopen (fpath, O_RDWR | O_CREAT | O_EXCL, mode, 0); + fd = rspamd_file_xopen (fpath, O_RDWR | O_CREAT | O_TRUNC, mode, 0); if (fd == -1) { lua_pushnil (L); |