From 6455a39ab8a8f0ee66af467c86d2d4b6124f68b8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 27 May 2015 17:10:27 +0100 Subject: [PATCH] Fix cache file open flags. --- src/libserver/symbols_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 96b59e5c1a..52c5ea4bf9 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -261,7 +261,7 @@ rspamd_symbols_cache_save_items (struct symbols_cache *cache, const gchar *name) gint fd; bool ret; - fd = open (name, O_CREAT | O_TRUNC | O_WRONLY | O_EXCL, 00644); + fd = open (name, O_CREAT | O_TRUNC | O_WRONLY, 00644); if (fd == -1) { msg_info ("cannot open file %s, error %d, %s", name, -- 2.47.3