]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix cache file open flags.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 27 May 2015 16:10:27 +0000 (17:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 27 May 2015 16:10:27 +0000 (17:10 +0100)
src/libserver/symbols_cache.c

index 96b59e5c1a64391f7ea92a163fa6187985b1be33..52c5ea4bf98ab164f9c787d09617976185348228 100644 (file)
@@ -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,