swapon LABEL=little bug
Alfonso Ranieri
alforan at tin.it
Tue Apr 14 07:34:07 UTC 2015
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)
More information about the busybox
mailing list