[git] GnuPG - branch, master, updated. gnupg-2.1.0beta1-31-g2732f2f

by Werner Koch cvs at cvs.gnupg.org
Mon Jan 10 11:58:53 CET 2011


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  2732f2ff3f44a5aae969d5ce16a4de74478576a2 (commit)
      from  7d24ffaf805074fce14fed0b22e413cf5ca00024 (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 2732f2ff3f44a5aae969d5ce16a4de74478576a2
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Jan 10 11:37:57 2011 +0100

    Fix bug #1311.

diff --git a/NEWS b/NEWS
index 2cdf854..2153733 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,9 @@ Noteworthy changes in version 2.1.0beta2 (unreleased)
 
  * Fixed CRL loading under W32 (bug#1010).
 
+ * Fixed TTY management for pinentries and session variable update
+   problem.
+
 
 Noteworthy changes in version 2.1.0beta1 (2010-10-26)
 -----------------------------------------------------
diff --git a/common/ChangeLog b/common/ChangeLog
index de96b8d..6a6f6e0 100644
--- a/common/ChangeLog
+++ b/common/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-10  Werner Koch  <wk at g10code.com>
+
+	* session-env.c (update_var): Fix same value detection.  Fixes
+	bug#1311.
+
 2010-12-17  Werner Koch  <wk at g10code.com>
 
 	* asshelp.c (lock_spawning): Add arg VERBOSE.  Improve timeout
diff --git a/common/session-env.c b/common/session-env.c
index 2dcf425..d719a7b 100644
--- a/common/session-env.c
+++ b/common/session-env.c
@@ -183,10 +183,11 @@ update_var (session_env_t se, const char *string, size_t namelen,
       else if (!strncmp (se->array[idx]->name, string, namelen)
                && strlen (se->array[idx]->name) == namelen)
         {
-          /* Check if the value is the same; no need to update it,
-             except for updating the default flag.  */
           if (strlen (se->array[idx]->value) == valuelen)
             {
+              /* The new value has the same length.  We can update it
+                 in-place.  */
+              memcpy (se->array[idx]->value, value, valuelen);
               se->array[idx]->is_default = !!set_default;
               return 0;
             }

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

Summary of changes:
 NEWS                 |    3 +++
 common/ChangeLog     |    5 +++++
 common/session-env.c |    5 +++--
 3 files changed, 11 insertions(+), 2 deletions(-)


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




More information about the Gnupg-commits mailing list