mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-09 12:54:23 +01:00
Fix bug #1311.
This commit is contained in:
parent
ded546b4b5
commit
b0c55d08a8
3
NEWS
3
NEWS
@ -14,6 +14,9 @@ Noteworthy changes in version 2.1.0beta2 (unreleased)
|
|||||||
|
|
||||||
* Fixed CRL loading under W32 (bug#1010).
|
* 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)
|
Noteworthy changes in version 2.1.0beta1 (2010-10-26)
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2011-01-10 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* session-env.c (update_var): Fix same value detection. Fixes
|
||||||
|
bug#1311.
|
||||||
|
|
||||||
2010-12-17 Werner Koch <wk@g10code.com>
|
2010-12-17 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* asshelp.c (lock_spawning): Add arg VERBOSE. Improve timeout
|
* asshelp.c (lock_spawning): Add arg VERBOSE. Improve timeout
|
||||||
|
@ -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)
|
else if (!strncmp (se->array[idx]->name, string, namelen)
|
||||||
&& strlen (se->array[idx]->name) == 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)
|
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;
|
se->array[idx]->is_default = !!set_default;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user