From 4b4746ee28804cb50229c6c42457c4f80c60faca Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 4 Apr 2011 00:04:36 +0200 Subject: [PATCH] Fix udisks --eject-options Pass the split option array to the D-BUS call, not the original unsplit string. --- tools/udisks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/udisks.c b/tools/udisks.c index ea6d2fc..6fbd6a6 100644 --- a/tools/udisks.c +++ b/tools/udisks.c @@ -210,7 +210,7 @@ do_eject (const char *object_path, proxy = dbus_g_proxy_new_for_name (bus, "org.freedesktop.UDisks", object_path, "org.freedesktop.UDisks.Device"); error = NULL; - if (!org_freedesktop_UDisks_Device_drive_eject (proxy, (const char **) options, &error)) + if (!org_freedesktop_UDisks_Device_drive_eject (proxy, (const char **) eject_options, &error)) { g_print ("Eject failed: %s\n", error->message); g_error_free (error); -- 2.7.4