[git] Pinentry - branch, master, updated. pinentry-0.9.7-3-g2f5bfa0

by Stef Walter cvs at cvs.gnupg.org
Mon Feb 15 09:15:57 CET 2016


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 standard pinentry collection".

The branch, master has been updated
       via  2f5bfa071ab5eaf86f64404bff448ca29cd0bdb6 (commit)
      from  954da56c2325c3a5ca628cfc2e3086c1e146a390 (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 2f5bfa071ab5eaf86f64404bff448ca29cd0bdb6
Author: Stef Walter <stefw at redhat.com>
Date:   Sun Feb 14 18:06:52 2016 +0100

    pinentry: Use stderr to print failures in password-cache.c
    
    Otherwise this interferes with the assuan protocol expected
    on stdout.
    
    GnuPG-bug-id: 2243

diff --git a/pinentry/password-cache.c b/pinentry/password-cache.c
index 70b33f4..c98c4c5 100644
--- a/pinentry/password-cache.c
+++ b/pinentry/password-cache.c
@@ -83,7 +83,7 @@ password_cache_save (const char *keygrip, const char *password)
 				    "stored-by", "GnuPG Pinentry",
 				    "keygrip", keygrip, NULL))
     {
-      printf("Failed to cache password for key %s with secret service: %s\n",
+      fprintf (stderr, "Failed to cache password for key %s with secret service: %s\n",
 	     keygrip, error->message);
 
       g_error_free (error);
@@ -112,7 +112,7 @@ password_cache_lookup (const char *keygrip)
 
   if (error != NULL)
     {
-      printf("Failed to lookup password for key %s with secret service: %s\n",
+      fprintf (stderr, "Failed to lookup password for key %s with secret service: %s\n",
 	     keygrip, error->message);
       g_error_free (error);
       return NULL;
@@ -126,7 +126,7 @@ password_cache_lookup (const char *keygrip)
   if (password2)
     strcpy(password2, password);
   else
-    printf("secmem_malloc failed: can't copy password!\n");
+    fprintf (stderr, "secmem_malloc failed: can't copy password!\n");
 
   secret_password_free (password);
 
@@ -148,7 +148,7 @@ password_cache_clear (const char *keygrip)
 					    "keygrip", keygrip, NULL);
   if (error != NULL)
     {
-      printf("Failed to clear password for key %s with secret service: %s\n",
+      fprintf (stderr, "Failed to clear password for key %s with secret service: %s\n",
 	     keygrip, error->message);
       g_debug("%s", error->message);
       g_error_free (error);

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

Summary of changes:
 pinentry/password-cache.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
The standard pinentry collection
http://git.gnupg.org




More information about the Gnupg-commits mailing list