From: Vsevolod Stakhov Date: Wed, 27 May 2015 16:10:27 +0000 (+0100) Subject: Fix cache file open flags. X-Git-Tag: 1.0.0~599 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6455a39ab8a8f0ee66af467c86d2d4b6124f68b8;p=thirdparty%2Frspamd.git Fix cache file open flags. --- 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,