[Pkg-gnupg-commit] [gnupg2] 22/124: wks: Set published keys world-readable.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Apr 5 15:55:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit e3589110e01dc6ad04463351ec2ce17201556d09
Author: Werner Koch <wk at gnupg.org>
Date: Mon Mar 6 13:21:50 2017 +0100
wks: Set published keys world-readable.
* tools/gpg-wks-server.c (check_and_publish): Set the permissions.
Signed-off-by: Werner Koch <wk at gnupg.org>
---
tools/gpg-wks-server.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/gpg-wks-server.c b/tools/gpg-wks-server.c
index 0376cce..fc021c5 100644
--- a/tools/gpg-wks-server.c
+++ b/tools/gpg-wks-server.c
@@ -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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list