mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
wks: Set published keys world-readable.
* tools/gpg-wks-server.c (check_and_publish): Set the permissions. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
4a130bbc2c
commit
e3589110e0
@ -1374,6 +1374,11 @@ check_and_publish (server_ctx_t ctx, const char *address, const char *nonce)
|
||||
goto leave;
|
||||
}
|
||||
|
||||
/* Make sure it is world readable. */
|
||||
if (gnupg_chmod (fnewname, "-rwxr--r--"))
|
||||
log_error ("can't set permissions of '%s': %s\n",
|
||||
fnewname, gpg_strerror (gpg_err_code_from_syserror()));
|
||||
|
||||
log_info ("key %s published for '%s'\n", ctx->fpr, address);
|
||||
send_congratulation_message (address, fnewname);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user