diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-30 21:09:15 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-30 21:09:15 +0000 |
commit | 1acb4ba50c7344332a2b35d118c6f34d9f7edaff (patch) | |
tree | a639b329dba791e9bee5758364f7ded907023efa /src/rspamadm | |
parent | d2a9a7765c9d16fff4f567a0c35092da83360365 (diff) | |
download | rspamd-1acb4ba50c7344332a2b35d118c6f34d9f7edaff.tar.gz rspamd-1acb4ba50c7344332a2b35d118c6f34d9f7edaff.zip |
[Minor] Dkim_keygen: Use 0640 instead of 0600
Suggested by: @moisseev
Issue: #4023
Diffstat (limited to 'src/rspamadm')
-rw-r--r-- | src/rspamadm/dkim_keygen.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |