Fix udisks --eject-options
authorMartin Pitt <martin.pitt@ubuntu.com>
Sun, 3 Apr 2011 22:04:36 +0000 (00:04 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sun, 3 Apr 2011 22:10:23 +0000 (00:10 +0200)
Pass the split option array to the D-BUS call, not the original unsplit string.

tools/udisks.c

index ea6d2fc..6fbd6a6 100644 (file)
@@ -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);