[git] GnuPG - branch, master, updated. gnupg-2.1.19-22-ge358911

by Werner Koch cvs at cvs.gnupg.org
Mon Mar 6 13:25:34 CET 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  e3589110e01dc6ad04463351ec2ce17201556d09 (commit)
      from  4a130bbc2c2f4be6e8c6357512a943f435ade28f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
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>

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);
 

-----------------------------------------------------------------------

Summary of changes:
 tools/gpg-wks-server.c | 5 +++++
 1 file changed, 5 insertions(+)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list