Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-15 04:11:22 +0400
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-15 04:11:22 +0400
commit8f0c89e05a7b52f8c5ae7b451de6fd50732aeb45 (patch)
tree9bf309fce9eff03da8980e84d3de5741627bf96d /util-linux/volume_id/get_devname.c
parentbc7177187f6b4f32c2f9562358294dfc7b521f67 (diff)
apply post-1.13.3 fixes, bump version to 1.13.41_13_41_13_stable
Diffstat (limited to 'util-linux/volume_id/get_devname.c')
-rw-r--r--util-linux/volume_id/get_devname.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/util-linux/volume_id/get_devname.c b/util-linux/volume_id/get_devname.c
index d82808fa2..4408c2486 100644
--- a/util-linux/volume_id/get_devname.c
+++ b/util-linux/volume_id/get_devname.c
@@ -223,13 +223,11 @@ void display_uuid_cache(void)
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;