volume_id: fix a buglet introduced by is_prefixed_with() conversion
authorAlfonso Ranieri <alforan@tin.it>
Tue, 14 Apr 2015 12:32:39 +0000 (14:32 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 14 Apr 2015 12:32:39 +0000 (14:32 +0200)
Signed-off-by: Alfonso Ranieri <alforan@tin.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/volume_id/get_devname.c

index 53bdbdf09f346c7820e45110366235bd1b70f3de..6b97df113888ffefe4db177dda299a8f39fdc7e3 100644 (file)
@@ -304,7 +304,7 @@ int resolve_mount_spec(char **fsname)
 
        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)