svn commit: [25912] trunk/busybox/util-linux/volume_id
vda at busybox.net
vda at busybox.net
Tue Mar 31 19:47:35 UTC 2009
Author: vda
Date: 2009-03-31 19:47:34 +0000 (Tue, 31 Mar 2009)
New Revision: 25912
Log:
volumeid: fix bug 249 "findfs finds the wrong partition"
Modified:
trunk/busybox/util-linux/volume_id/get_devname.c
Changeset:
Modified: trunk/busybox/util-linux/volume_id/get_devname.c
===================================================================
--- trunk/busybox/util-linux/volume_id/get_devname.c 2009-03-31 19:36:58 UTC (rev 25911)
+++ trunk/busybox/util-linux/volume_id/get_devname.c 2009-03-31 19:47:34 UTC (rev 25912)
@@ -223,13 +223,11 @@
char *get_devname_from_label(const char *spec)
{
struct uuidCache_s *uc;
- int spec_len = strlen(spec);
uuidcache_init();
uc = uuidCache;
while (uc) {
-// FIXME: empty label ("LABEL=") matches anything??!
- if (uc->label[0] && strncmp(spec, uc->label, spec_len) == 0) {
+ if (uc->label[0] && strcmp(spec, uc->label) == 0) {
return xstrdup(uc->device);
}
uc = uc->next;
More information about the busybox-cvs
mailing list