Fix crash in gnome-screensaver
This commit is contained in:
parent
51050917bc
commit
cce226bf1c
33
dont-call-g-source-remove.patch
Normal file
33
dont-call-g-source-remove.patch
Normal file
@ -0,0 +1,33 @@
|
||||
diff -up fprintd-0.1/pam/pam_fprintd.c.dont-call-g-source-remove fprintd-0.1/pam/pam_fprintd.c
|
||||
--- fprintd-0.1/pam/pam_fprintd.c.dont-call-g-source-remove 2010-07-27 15:05:40.438038286 -0700
|
||||
+++ fprintd-0.1/pam/pam_fprintd.c 2010-07-27 15:06:45.220024621 -0700
|
||||
@@ -298,11 +298,10 @@ static int do_verify(GMainLoop *loop, pa
|
||||
|
||||
while (ret == PAM_AUTH_ERR && data->max_tries > 0) {
|
||||
GSource *source;
|
||||
- guint timeout_id;
|
||||
|
||||
/* Set up the timeout on our non-default context */
|
||||
source = g_timeout_source_new_seconds (TIMEOUT);
|
||||
- timeout_id = g_source_attach (source, g_main_loop_get_context (loop));
|
||||
+ g_source_attach (source, g_main_loop_get_context (loop));
|
||||
g_source_set_callback (source, verify_timeout_cb, data, NULL);
|
||||
|
||||
data->timed_out = FALSE;
|
||||
@@ -311,14 +310,14 @@ static int do_verify(GMainLoop *loop, pa
|
||||
D(pamh, "VerifyStart failed: %s", error->message);
|
||||
g_error_free (error);
|
||||
|
||||
- g_source_remove (timeout_id);
|
||||
+ g_source_destroy (source);
|
||||
g_source_unref (source);
|
||||
break;
|
||||
}
|
||||
|
||||
g_main_loop_run (loop);
|
||||
|
||||
- g_source_remove (timeout_id);
|
||||
+ g_source_destroy (source);
|
||||
g_source_unref (source);
|
||||
|
||||
/* Ignore errors from VerifyStop */
|
||||
@ -18,6 +18,8 @@ BuildRequires: gtk-doc
|
||||
BuildRequires: intltool
|
||||
BuildRequires: autoconf automake libtool
|
||||
|
||||
Patch0: dont-call-g-source-remove.patch
|
||||
|
||||
%description
|
||||
D-Bus service to access fingerprint readers.
|
||||
|
||||
@ -50,6 +52,7 @@ fingerprint readers access.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%patch0 -p1 -b .dont-call-g-source-remove
|
||||
|
||||
%build
|
||||
%configure --libdir=/%{_lib}/ --enable-gtk-doc --enable-pam
|
||||
@ -91,6 +94,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml
|
||||
|
||||
%changelog
|
||||
* Mon Nov 08 2010 Ray Strode <rstrode@redhat.com> 0.2.0-1
|
||||
- Fix crash in gnome-screensaver
|
||||
|
||||
* Thu Aug 19 2010 Bastien Nocera <bnocera@redhat.com> 0.2.0-1
|
||||
- Update to 0.2.0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user