mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 06:07:00 +00:00
volume_id: fix a buglet introduced by is_prefixed_with() conversion
Signed-off-by: Alfonso Ranieri <alforan@tin.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e0ddb65cb2
commit
a90490fb69
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user