summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.13.3-volumeid.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-04-01 13:01:54 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-04-01 13:01:54 +0000
commitb54bedd60c7e77ef274d272ec5807fce85134ad3 (patch)
tree3424849e97c9d44aae55ee2ff0b28e0c24088c71 /package/busybox/busybox-1.13.3-volumeid.patch
parentbb62b139ba7a1dd1e160b2151dc1f9f3eb6cd60f (diff)
busybox: additional 1.13.3 fixes
Diffstat (limited to 'package/busybox/busybox-1.13.3-volumeid.patch')
-rw-r--r--package/busybox/busybox-1.13.3-volumeid.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.13.3-volumeid.patch b/package/busybox/busybox-1.13.3-volumeid.patch
new file mode 100644
index 000000000..ff4c0258e
--- /dev/null
+++ b/package/busybox/busybox-1.13.3-volumeid.patch
@@ -0,0 +1,18 @@
+diff -urpN busybox-1.13.3/util-linux/volume_id/get_devname.c busybox-1.13.3-volumeid/util-linux/volume_id/get_devname.c
+--- busybox-1.13.3/util-linux/volume_id/get_devname.c 2009-02-26 12:47:41.000000000 +0100
++++ busybox-1.13.3-volumeid/util-linux/volume_id/get_devname.c 2009-03-31 21:46:37.000000000 +0200
+@@ -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;