summaryrefslogtreecommitdiffstats
path: root/agent/gpg-agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/gpg-agent.c')
-rw-r--r--agent/gpg-agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index df5afad36..71b0274bb 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -1100,7 +1100,7 @@ main (int argc, char **argv )
{
estream_t fp;
- fp = es_fopen (env_file_name, "w");
+ fp = es_fopen (env_file_name, "w,mode=-rw");
if (!fp)
log_error (_("error creating `%s': %s\n"),
env_file_name, strerror (errno));