diff options
author | Karel Zak | 2017-11-13 12:23:23 +0100 |
---|---|---|
committer | Karel Zak | 2017-11-13 12:23:23 +0100 |
commit | 16068d0b9e437091ea78c8ee03ff1b870ba4c9be (patch) | |
tree | 5333f9bb259f96d4626ee1f5952e6b6da43ed48f /libblkid | |
parent | blockdev: be more explicit for BLKSSZ in blockdev.8 (diff) | |
parent | libblkid: vfat: Fix reading labels which starts with byte 0x05 (diff) | |
download | kernel-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.c | 2 |
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; } } |