- Fix a nasty bug that's been fixed upstream where gnome-keyring-daemon

would hang when re-allocating from a pool of secure memory.
This commit is contained in:
Richard Hughes 2009-04-02 14:04:52 +00:00
parent eabba88699
commit 9662952340
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/egg/egg-secure-memory.c b/egg/egg-secure-memory.c
index a215364..ba0cf5c 100644
--- a/egg/egg-secure-memory.c
+++ b/egg/egg-secure-memory.c
@@ -341,7 +341,7 @@ sec_insert_cell_ring (Cell **ring, Cell *cell)
/* Insert back into the mix of available memory */
if (*ring) {
cell->next = (*ring)->next;
- cell->prev = (*ring)->prev;
+ cell->prev = *ring;
cell->next->prev = cell;
cell->prev->next = cell;
} else {

View File

@ -8,12 +8,16 @@
Summary: Framework for managing passwords and other secrets Summary: Framework for managing passwords and other secrets
Name: gnome-keyring Name: gnome-keyring
Version: 2.26.0 Version: 2.26.0
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ and LGPLv2+ License: GPLv2+ and LGPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
Source: http://download.gnome.org/sources/gnome-keyring/2.26/gnome-keyring-%{version}.tar.bz2 Source: http://download.gnome.org/sources/gnome-keyring/2.26/gnome-keyring-%{version}.tar.bz2
URL: http://www.gnome.org URL: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# already in gnome svn, fixes a nasty bug described in http://bugzilla.gnome.org/show_bug.cgi?id=575247
Patch0: gnome-keyring-2.26.0-egg-endless-loop.patch
BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: gtk2-devel >= %{gtk2_version}
BuildRequires: GConf2-devel BuildRequires: GConf2-devel
@ -65,6 +69,7 @@ automatically unlock the "login" keyring when the user logs in.
%prep %prep
%setup -q -n gnome-keyring-%{version} %setup -q -n gnome-keyring-%{version}
%patch0 -p1 -b .nasty-endless-loop
%build %build
%configure --disable-gtk-doc --with-pam-dir=/%{_lib}/security --disable-acl-prompts %configure --disable-gtk-doc --with-pam-dir=/%{_lib}/security --disable-acl-prompts
@ -141,6 +146,10 @@ fi
%changelog %changelog
* Thu Apr 02 2009 Richard Hughes <rhughes@redhat.com> - 2.26.0-2
- Fix a nasty bug that's been fixed upstream where gnome-keyring-daemon
would hang when re-allocating from a pool of secure memory.
* Mon Mar 16 2009 Tomas Bzatek <tbzatek@redhat.com> - 2.26.0-1 * Mon Mar 16 2009 Tomas Bzatek <tbzatek@redhat.com> - 2.26.0-1
- Update to 2.26.0 - Update to 2.26.0