From 1acb4ba50c7344332a2b35d118c6f34d9f7edaff Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 30 Dec 2021 21:09:15 +0000 Subject: [PATCH] [Minor] Dkim_keygen: Use 0640 instead of 0600 Suggested by: @moisseev Issue: #4023 --- src/rspamadm/dkim_keygen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rspamadm/dkim_keygen.c b/src/rspamadm/dkim_keygen.c index 318cc924d..1bbb71775 100644 --- a/src/rspamadm/dkim_keygen.c +++ b/src/rspamadm/dkim_keygen.c @@ -110,7 +110,7 @@ rspamd_dkim_generate_rsa_keypair (const gchar *domain, const gchar *selector, g_assert (EVP_PKEY_set1_RSA (pk, r) == 1); if (priv_fname) { - int fd = open (priv_fname, O_WRONLY | O_CREAT | O_TRUNC, 0600); + int fd = open (priv_fname, O_WRONLY | O_CREAT | O_TRUNC, 0640); if (fd < 0) { rspamd_fprintf (stderr, "cannot open output file %s: %s\n", -- 2.39.5