[git commit] volume_id: fix a buglet introduced by is_prefixed_with() conversion

Denys Vlasenko vda.linux at googlemail.com
Tue Apr 14 12:32:39 UTC 2015


commit: http://git.busybox.net/busybox/commit/?id=a90490fb69f78148beacf371b603c16276137879
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Alfonso Ranieri <alforan at tin.it>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 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 53bdbdf..6b97df1 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)
 
 	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)


More information about the busybox-cvs mailing list