aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-11 17:57:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-11 17:57:26 +0000
commit41cea9563e310ac85b148b2ade712e104290e573 (patch)
treebae1b80cf4c6eb28787197ab656f87ff84b08ae6 /src/lua/lua_util.c
parent3f296fa7f8e841f8dc581be285c668974737b7c1 (diff)
downloadrspamd-41cea9563e310ac85b148b2ade712e104290e573.tar.gz
rspamd-41cea9563e310ac85b148b2ade712e104290e573.zip
[Minor] Don't use O_EXCL flag when creating files from Lua
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r--src/lua/lua_util.c2
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);