[git] GnuPG - branch, master, updated. gnupg-2.1.19-48-g9a77b3b

by Werner Koch cvs at cvs.gnupg.org
Mon Mar 13 17:46:13 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  9a77b3b6e41f97b1209ad61c04b3dd33242ecae8 (commit)
      from  046a15a88c83b40a753b4ad7ecc1456efa5b527f (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 9a77b3b6e41f97b1209ad61c04b3dd33242ecae8
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Mar 13 17:42:08 2017 +0100

    gpg: Flush stdout before printing stats with --check-sigs.
    
    * g10/keylist.c (print_signature_stats): Flush stdout.
    (list_keyblock_colon): Use es_flush instead of fflush.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/g10/keylist.c b/g10/keylist.c
index 3f9e313..32cf1e8 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -465,6 +465,10 @@ print_signature_stats (struct keylist_context *s)
   if (!s->check_sigs)
     return;  /* Signature checking was not requested.  */
 
+  /* Better flush stdout so that the stats are always printed after
+   * the output.  */
+  es_fflush (es_stdout);
+
   if (s->good_sigs)
     log_info (ngettext("%d good signature\n",
                        "%d good signatures\n", s->good_sigs), s->good_sigs);
@@ -1446,7 +1450,7 @@ list_keyblock_colon (ctrl_t ctrl, kbnode_t keyblock,
 	    {
 	      PKT_public_key *signer_pk = NULL;
 
-	      fflush (stdout);
+	      es_fflush (es_stdout);
 	      if (opt.no_sig_cache)
 		signer_pk = xmalloc_clear (sizeof (PKT_public_key));
 

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

Summary of changes:
 g10/keylist.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


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




More information about the Gnupg-commits mailing list