projects
/
platform
/
upstream
/
udisks2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd29f3d
)
Fix drive lookup logic
author
David Zeuthen
<davidz@redhat.com>
Sat, 13 Aug 2011 16:00:34 +0000
(12:00 -0400)
committer
David Zeuthen
<davidz@redhat.com>
Sat, 13 Aug 2011 16:00:34 +0000
(12:00 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
src/udiskslinuxblock.c
patch
|
blob
|
history
diff --git
a/src/udiskslinuxblock.c
b/src/udiskslinuxblock.c
index
75c4368
..
74fb5a7
100644
(file)
--- 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_str
cmp0 (block_device_sysfs_path, drive_sysfs_path) == 0
)
{
if (out_drive != NULL)
*out_drive = udisks_object_get_drive (UDISKS_OBJECT (object));