aboutsummaryrefslogtreecommitdiffstats
path: root/agent/findkey.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--agent/findkey.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/agent/findkey.c b/agent/findkey.c
index db610c15a..5668aafbc 100644
--- a/agent/findkey.c
+++ b/agent/findkey.c
@@ -72,8 +72,7 @@ agent_write_private_key (const unsigned char *grip,
return gpg_error (GPG_ERR_EEXIST);
}
- /* FIXME: On POSIX systems we used include S_IRGRP as well. */
- fp = es_fopen (fname, force? "wb" : "wbx");
+ fp = es_fopen (fname, force? "wb,mode=-rw" : "wbx,mode=-rw");
if (!fp)
{
gpg_error_t tmperr = gpg_error_from_syserror ();