summaryrefslogtreecommitdiffstats
path: root/libblkid
diff options
context:
space:
mode:
authorKarel Zak2017-11-13 12:23:23 +0100
committerKarel Zak2017-11-13 12:23:23 +0100
commit16068d0b9e437091ea78c8ee03ff1b870ba4c9be (patch)
tree5333f9bb259f96d4626ee1f5952e6b6da43ed48f /libblkid
parentblockdev: be more explicit for BLKSSZ in blockdev.8 (diff)
parentlibblkid: vfat: Fix reading labels which starts with byte 0x05 (diff)
downloadkernel-qcow2-util-linux-16068d0b9e437091ea78c8ee03ff1b870ba4c9be.tar.gz
kernel-qcow2-util-linux-16068d0b9e437091ea78c8ee03ff1b870ba4c9be.tar.xz
kernel-qcow2-util-linux-16068d0b9e437091ea78c8ee03ff1b870ba4c9be.zip
Merge branch 'master' of https://github.com/pali/util-linux
* 'master' of https://github.com/pali/util-linux: libblkid: vfat: Fix reading labels which starts with byte 0x05
Diffstat (limited to 'libblkid')
-rw-r--r--libblkid/src/superblocks/vfat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libblkid/src/superblocks/vfat.c b/libblkid/src/superblocks/vfat.c
index 0cdd2bac7..3aeba018a 100644
--- a/libblkid/src/superblocks/vfat.c
+++ b/libblkid/src/superblocks/vfat.c
@@ -165,6 +165,8 @@ static unsigned char *search_fat_label(blkid_probe pr,
if ((ent->attr & (FAT_ATTR_VOLUME_ID | FAT_ATTR_DIR)) ==
FAT_ATTR_VOLUME_ID) {
DBG(LOWPROBE, ul_debug("\tfound fs LABEL at entry %d", i));
+ if (ent->name[0] == 0x05)
+ ent->name[0] = 0xE5;
return ent->name;
}
}