Little bug in get_devname.c that makes swapon by label not working.

--- ./util-linux/volume_id/get_devname.c.orig 2015-04-14 09:30:05.000000000 +0200 +++ ./util-linux/volume_id/get_devname.c 2015-04-14 09:30:20.000000000 +0200
@@ -304,7 +304,7 @@

        if (is_prefixed_with(*fsname, "UUID="))
                tmp = get_devname_from_uuid(*fsname + 5);
-       else if (is_prefixed_with(*fsname, "LABEL=") == 0)
+       else if (is_prefixed_with(*fsname, "LABEL="))
                tmp = get_devname_from_label(*fsname + 6);

        if (tmp == *fsname)

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to