Blame SOURCES/udisks2-Fix-crashes-caused-by-missing-source-tag.patch
|
|
1a0d93 |
From 38831e4ea149a0b4731d123c63d8b493d30ad0be Mon Sep 17 00:00:00 2001
|
|
|
1a0d93 |
From: Ondrej Holy <oholy@redhat.com>
|
|
|
1a0d93 |
Date: Sat, 26 May 2018 08:16:02 +0200
|
|
|
1a0d93 |
Subject: [PATCH] udisks2: Fix crashes caused by missing source tag
|
|
|
1a0d93 |
|
|
|
1a0d93 |
GAsyncReadyCallback is never called from g_drive_stop, because
|
|
|
1a0d93 |
source_tag is not set, but checked. This obviously causes issues
|
|
|
1a0d93 |
for client applications. Add missing source_tag.
|
|
|
1a0d93 |
|
|
|
1a0d93 |
Closes: https://gitlab.gnome.org/GNOME/gvfs/issues/1
|
|
|
1a0d93 |
---
|
|
|
1a0d93 |
monitor/udisks2/gvfsudisks2drive.c | 1 +
|
|
|
1a0d93 |
1 file changed, 1 insertion(+)
|
|
|
1a0d93 |
|
|
|
1a0d93 |
diff --git a/monitor/udisks2/gvfsudisks2drive.c b/monitor/udisks2/gvfsudisks2drive.c
|
|
|
1a0d93 |
index 52e9b75e..87656688 100644
|
|
|
1a0d93 |
--- a/monitor/udisks2/gvfsudisks2drive.c
|
|
|
1a0d93 |
+++ b/monitor/udisks2/gvfsudisks2drive.c
|
|
|
1a0d93 |
@@ -915,6 +915,7 @@ gvfs_udisks2_drive_stop (GDrive *_drive,
|
|
|
1a0d93 |
GTask *task;
|
|
|
1a0d93 |
|
|
|
1a0d93 |
task = g_task_new (drive, cancellable, callback, user_data);
|
|
|
1a0d93 |
+ g_task_set_source_tag (task, gvfs_udisks2_drive_stop);
|
|
|
1a0d93 |
|
|
|
1a0d93 |
/* This information is needed in GVfsDdisks2Volume when apps have
|
|
|
1a0d93 |
* open files on the device ... we need to know if the button should
|
|
|
1a0d93 |
--
|
|
|
1a0d93 |
2.23.0
|
|
|
1a0d93 |
|