summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2011-08-13 12:00:34 -0400
committerDavid Zeuthen <davidz@redhat.com>2011-08-13 12:00:34 -0400
commit609fcd3515942140c14561e516923af70a6d4128 (patch)
tree28903a58a662c97228f5fe3d5a50e430eaf82581
parentcd29f3d0d6a5b82edd1300f4475309f36cd2c6b2 (diff)
Fix drive lookup logic
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r--src/udiskslinuxblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udiskslinuxblock.c b/src/udiskslinuxblock.c
index 75c4368..74fb5a7 100644
--- a/src/udiskslinuxblock.c
+++ b/src/udiskslinuxblock.c
@@ -1263,7 +1263,7 @@ find_drive (GDBusObjectManagerServer *object_manager,
const gchar *drive_sysfs_path;
drive_sysfs_path = g_udev_device_get_sysfs_path (drive_device);
- if (g_str_has_prefix (block_device_sysfs_path, drive_sysfs_path))
+ if (g_strcmp0 (block_device_sysfs_path, drive_sysfs_path) == 0)
{
if (out_drive != NULL)
*out_drive = udisks_object_get_drive (UDISKS_OBJECT (object));