diff options
Diffstat (limited to '')
-rw-r--r-- | agent/gpg-agent.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index 8aab2b951..a87052a92 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -1908,9 +1908,13 @@ create_private_keys_directory (const char *home) else if (!opt.quiet) log_info (_("directory '%s' created\n"), fname); } + if (gnupg_chmod (fname, "-rwx")) + log_error (_("can't set permissions of '%s': %s\n"), + fname, strerror (errno)); xfree (fname); } + /* Create the directory only if the supplied directory name is the same as the default one. This way we avoid to create arbitrary directories when a non-default home directory is used. To cope |