diff -up DeviceKit-disks-003/tools/devkit-disks.c.dashdash DeviceKit-disks-003/tools/devkit-disks.c
--- DeviceKit-disks-003/tools/devkit-disks.c.dashdash 2009-03-10 14:29:11.648335078 -0400
+++ DeviceKit-disks-003/tools/devkit-disks.c 2009-03-10 14:47:19.498336713 -0400
@@ -1056,6 +1056,11 @@ do_inhibit_polling (const char *object_p
cookie = NULL;
ret = 127;
+ if (argc > 0 && strcmp (argv[0], "--") == 0) {
+ argv++;
+ argc--;
+ }
+
proxy = dbus_g_proxy_new_for_name (bus,
"org.freedesktop.DeviceKit.Disks",
object_path,
@@ -1123,9 +1128,14 @@ do_inhibit_all_polling (gint arg
cookie = NULL;
ret = 127;
+ if (argc > 0 && strcmp (argv[0], "--") == 0) {
+ argv++;
+ argc--;
+ }
+
proxy = dbus_g_proxy_new_for_name (bus,
"org.freedesktop.DeviceKit.Disks",
- "/",
+ "/",
"org.freedesktop.DeviceKit.Disks");
error = NULL;
@@ -1188,6 +1198,11 @@ do_inhibit (gint argc,
cookie = NULL;
ret = 127;
+ if (argc > 0 && strcmp (argv[0], "--") == 0) {
+ argv++;
+ argc--;
+ }
+
proxy = dbus_g_proxy_new_for_name (bus,
"org.freedesktop.DeviceKit.Disks",
"/",