diff options
author | Alfonso Ranieri <alforan@tin.it> | 2015-04-14 14:32:39 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-04-14 14:32:39 +0200 |
commit | a90490fb69f78148beacf371b603c16276137879 (patch) | |
tree | 2ff50aec3153ea8018130649a08667286def9252 | |
parent | e0ddb65cb234db6482d80febee1a63778f818db6 (diff) | |
download | busybox-w32-a90490fb69f78148beacf371b603c16276137879.tar.gz busybox-w32-a90490fb69f78148beacf371b603c16276137879.tar.bz2 busybox-w32-a90490fb69f78148beacf371b603c16276137879.zip |
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>
-rw-r--r-- | util-linux/volume_id/get_devname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/volume_id/get_devname.c b/util-linux/volume_id/get_devname.c index 53bdbdf09..6b97df113 100644 --- a/util-linux/volume_id/get_devname.c +++ b/util-linux/volume_id/get_devname.c | |||
@@ -304,7 +304,7 @@ int resolve_mount_spec(char **fsname) | |||
304 | 304 | ||
305 | if (is_prefixed_with(*fsname, "UUID=")) | 305 | if (is_prefixed_with(*fsname, "UUID=")) |
306 | tmp = get_devname_from_uuid(*fsname + 5); | 306 | tmp = get_devname_from_uuid(*fsname + 5); |
307 | else if (is_prefixed_with(*fsname, "LABEL=") == 0) | 307 | else if (is_prefixed_with(*fsname, "LABEL=")) |
308 | tmp = get_devname_from_label(*fsname + 6); | 308 | tmp = get_devname_from_label(*fsname + 6); |
309 | 309 | ||
310 | if (tmp == *fsname) | 310 | if (tmp == *fsname) |