neil / rpms / udisks2

Forked from rpms/udisks2 a year ago
Clone

Blame SOURCES/udisks-2.10.0-udiskslinuxfilesystem_GError.patch

598898
From 223256777f6e269b8501d95a64c4c6095a7a8a3e Mon Sep 17 00:00:00 2001
598898
From: Tomas Bzatek <tbzatek@redhat.com>
598898
Date: Sat, 1 Jan 2022 22:02:17 +0100
598898
Subject: [PATCH] udiskslinuxfilesystem: Fix GError ownership
598898
598898
---
598898
 src/udiskslinuxfilesystem.c | 8 ++++----
598898
 1 file changed, 4 insertions(+), 4 deletions(-)
598898
598898
diff --git a/src/udiskslinuxfilesystem.c b/src/udiskslinuxfilesystem.c
598898
index f7c99757a..a8390a044 100644
598898
--- a/src/udiskslinuxfilesystem.c
598898
+++ b/src/udiskslinuxfilesystem.c
598898
@@ -1739,7 +1739,7 @@ handle_resize (UDisksFilesystem      *filesystem,
598898
   object = udisks_daemon_util_dup_object (filesystem, &error);
598898
   if (object == NULL)
598898
     {
598898
-      g_dbus_method_invocation_take_error (invocation, error);
598898
+      g_dbus_method_invocation_return_gerror (invocation, error);
598898
       goto out;
598898
     }
598898
 
598898
@@ -1921,7 +1921,7 @@ handle_repair (UDisksFilesystem      *filesystem,
598898
   object = udisks_daemon_util_dup_object (filesystem, &error);
598898
   if (object == NULL)
598898
     {
598898
-      g_dbus_method_invocation_take_error (invocation, error);
598898
+      g_dbus_method_invocation_return_gerror (invocation, error);
598898
       goto out;
598898
     }
598898
 
598898
@@ -2089,7 +2089,7 @@ handle_check (UDisksFilesystem      *filesystem,
598898
   object = udisks_daemon_util_dup_object (filesystem, &error);
598898
   if (object == NULL)
598898
     {
598898
-      g_dbus_method_invocation_take_error (invocation, error);
598898
+      g_dbus_method_invocation_return_gerror (invocation, error);
598898
       goto out;
598898
     }
598898
 
598898
@@ -2257,7 +2257,7 @@ handle_take_ownership (UDisksFilesystem      *filesystem,
598898
   object = udisks_daemon_util_dup_object (filesystem, &error);
598898
   if (object == NULL)
598898
     {
598898
-      g_dbus_method_invocation_take_error (invocation, error);
598898
+      g_dbus_method_invocation_return_gerror (invocation, error);
598898
       goto out;
598898
     }
598898