1303 files changed, 32187 insertions, 57138 deletions
diff --git a/util-linux/volume_id/get_devname.c b/util-linux/volume_id/get_devname.c index 648dbc4..3789de4 100644 --- a/util-linux/volume_id/get_devname.c +++ b/util-linux/volume_id/get_devname.c @@ -107,7 +107,11 @@ uuidcache_check_device(const char *device, int depth UNUSED_PARAM) { /* note: this check rejects links to devices, among other nodes */ - if (!S_ISBLK(statbuf->st_mode)) + if (!S_ISBLK(statbuf->st_mode) +#if ENABLE_FEATURE_VOLUMEID_UBIFS + && !(S_ISCHR(statbuf->st_mode) && strncmp(bb_basename(device), "ubi", 3) == 0) +#endif + ) return TRUE; /* Users report that mucking with floppies (especially non-present @@ -302,9 +306,9 @@ int resolve_mount_spec(char **fsname) { char *tmp = *fsname; - if (strncmp(*fsname, "UUID=", 5) == 0) + if (is_prefixed_with(*fsname, "UUID=")) tmp = get_devname_from_uuid(*fsname + 5); - else if (strncmp(*fsname, "LABEL=", 6) == 0) + else if (is_prefixed_with(*fsname, "LABEL=")) tmp = get_devname_from_label(*fsname + 6); if (tmp == *fsname) |