rpms/seahorse-plugins/F-12 seahorse-agent-uninit.patch, NONE, 1.1 seahorse-plugins.spec, 1.32, 1.33
Matthias Clasen
mclasen at fedoraproject.org
Tue Nov 10 00:56:03 UTC 2009
Author: mclasen
Update of /cvs/pkgs/rpms/seahorse-plugins/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14343
Modified Files:
seahorse-plugins.spec
Added Files:
seahorse-agent-uninit.patch
Log Message:
Fix a possible crash of seahorse-agent at session end
seahorse-agent-uninit.patch:
seahorse-agent-main.c | 2 +-
seahorse-agent.c | 6 ------
seahorse-agent.h | 1 -
3 files changed, 1 insertion(+), 8 deletions(-)
--- NEW FILE seahorse-agent-uninit.patch ---
diff -up seahorse-plugins-2.28.1/agent/seahorse-agent.c.uninit seahorse-plugins-2.28.1/agent/seahorse-agent.c
--- seahorse-plugins-2.28.1/agent/seahorse-agent.c.uninit 2009-11-09 19:48:13.260584104 -0500
+++ seahorse-plugins-2.28.1/agent/seahorse-agent.c 2009-11-09 19:48:26.065839414 -0500
@@ -160,9 +160,3 @@ seahorse_agent_uninit (gpointer *data)
return FALSE;
}
-
-void
-seahorse_agent_exit ()
-{
- seahorse_agent_uninit (NULL);
-}
diff -up seahorse-plugins-2.28.1/agent/seahorse-agent.h.uninit seahorse-plugins-2.28.1/agent/seahorse-agent.h
--- seahorse-plugins-2.28.1/agent/seahorse-agent.h.uninit 2009-11-09 19:48:35.567605890 -0500
+++ seahorse-plugins-2.28.1/agent/seahorse-agent.h 2009-11-09 19:48:41.356583595 -0500
@@ -55,7 +55,6 @@ void seahorse_agent_childsetup ();
/* Called in the new child process */
gboolean seahorse_agent_init ();
gboolean seahorse_agent_uninit (gpointer *data);
-void seahorse_agent_exit ();
/* Global options to set from the command line */
extern gboolean seahorse_agent_cshell;
diff -up seahorse-plugins-2.28.1/agent/seahorse-agent-main.c.uninit seahorse-plugins-2.28.1/agent/seahorse-agent-main.c
--- seahorse-plugins-2.28.1/agent/seahorse-agent-main.c.uninit 2009-11-09 19:48:55.069584989 -0500
+++ seahorse-plugins-2.28.1/agent/seahorse-agent-main.c 2009-11-09 19:49:23.294833587 -0500
@@ -253,7 +253,7 @@ int main(int argc, char* argv[])
*/
daemonize (seahorse_agent_execvars ? agent_exec_args : NULL);
- atexit (seahorse_agent_exit);
+ atexit (seahorse_agent_io_uninit);
g_strfreev (agent_exec_args);
agent_exec_args = NULL;
Index: seahorse-plugins.spec
===================================================================
RCS file: /cvs/pkgs/rpms/seahorse-plugins/F-12/seahorse-plugins.spec,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -p -r1.32 -r1.33
--- seahorse-plugins.spec 19 Oct 2009 09:14:11 -0000 1.32
+++ seahorse-plugins.spec 10 Nov 2009 00:56:02 -0000 1.33
@@ -8,6 +8,9 @@ URL: http://projects.gnome.org/seahorse
Source: http://download.gnome.org/sources/seahorse-plugins/2.28/%{name}-%{version}.tar.bz2
Source1: seahorse-agent.sh
+# https://bugzilla.gnome.org/show_bug.cgi?id=579738
+Patch0: seahorse-agent-uninit.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: intltool
@@ -59,6 +62,7 @@ from applications like nautilus or gedit
%prep
%setup -q
+%patch0 -p1 -b .uninit
autoreconf -i -f
@@ -183,6 +187,10 @@ fi
#%{_libdir}/epiphany/2.27/extensions/seahorse.ephy-extension
%changelog
+* Mon Nov 9 2009 Matthias Clasen <mclasen at redhat.com> 2.28.1-2
+- Don't call problematic functions in an atexit handler,
+ since this can lead to segfaults at session end (#524415)
+
* Mon Oct 19 2009 Tomas Bzatek <tbzatek at redhat.com> 2.28.1-1
- Update to 2.28.1
More information about the scm-commits
mailing list