]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix shm_open call as described in POSIX
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 10 Jun 2016 15:49:34 +0000 (16:49 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 10 Jun 2016 15:49:34 +0000 (16:49 +0100)
src/libserver/task.c

index 16e8cc681722b9bc36e88e8f149c9471ac636637..7d45274df784cfd9e432106fd88e877321262263 100644 (file)
@@ -310,7 +310,7 @@ rspamd_task_load_message (struct rspamd_task *task,
                        fp = &filepath[0];
                }
 
-               fd = shm_open (fp, O_RDONLY);
+               fd = shm_open (fp, O_RDONLY, 00600);
 
                if (fd == -1) {
                        g_set_error (&task->err, rspamd_task_quark(), RSPAMD_PROTOCOL_ERROR,