udisks2/fix_polkit_action_name.diff

54 lines
2.2 KiB
Diff
Raw Normal View History

diff --git a/src/udiskslinuxpartition.c b/src/udiskslinuxpartition.c
index 9582346..e3ae93f 100644
--- a/src/udiskslinuxpartition.c
+++ b/src/udiskslinuxpartition.c
@@ -269,7 +269,7 @@ handle_set_flags (UDisksPartition *partition,
}
else if (!udisks_daemon_util_on_same_seat (daemon, object, caller_pid))
{
- action_id = "org.freedesktop.udisks2.modify-device-system-other-seat";
+ action_id = "org.freedesktop.udisks2.modify-device-other-seat";
}
if (!udisks_daemon_util_check_authorization_sync (daemon,
@@ -414,7 +414,7 @@ handle_set_name (UDisksPartition *partition,
}
else if (!udisks_daemon_util_on_same_seat (daemon, object, caller_pid))
{
- action_id = "org.freedesktop.udisks2.modify-device-system-other-seat";
+ action_id = "org.freedesktop.udisks2.modify-device-other-seat";
}
if (!udisks_daemon_util_check_authorization_sync (daemon,
@@ -596,7 +596,7 @@ handle_set_type (UDisksPartition *partition,
}
else if (!udisks_daemon_util_on_same_seat (daemon, object, caller_pid))
{
- action_id = "org.freedesktop.udisks2.modify-device-system-other-seat";
+ action_id = "org.freedesktop.udisks2.modify-device-other-seat";
}
if (!udisks_daemon_util_check_authorization_sync (daemon,
@@ -769,7 +769,7 @@ handle_delete (UDisksPartition *partition,
}
else if (!udisks_daemon_util_on_same_seat (daemon, object, caller_pid))
{
- action_id = "org.freedesktop.udisks2.modify-device-system-other-seat";
+ action_id = "org.freedesktop.udisks2.modify-device-other-seat";
}
if (!udisks_daemon_util_check_authorization_sync (daemon,
diff --git a/src/udiskslinuxpartitiontable.c b/src/udiskslinuxpartitiontable.c
index 8f0d3d9..b553625 100644
--- a/src/udiskslinuxpartitiontable.c
+++ b/src/udiskslinuxpartitiontable.c
@@ -336,7 +336,7 @@ handle_create_partition (UDisksPartitionTable *table,
}
else if (!udisks_daemon_util_on_same_seat (daemon, object, caller_pid))
{
- action_id = "org.freedesktop.udisks2.modify-device-system-other-seat";
+ action_id = "org.freedesktop.udisks2.modify-device-other-seat";
}
if (!udisks_daemon_util_check_authorization_sync (daemon,