blkid: Encode any field which starts with LABEL in same way as LABEL field

This applies also for LABEL_FATBOOT which contains bytes according to DOS
code page and therefore does not contain valid UTF-8 sequence.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
This commit is contained in:
Pali Rohár 2017-11-25 12:48:32 +01:00
parent f0ca7e80d7
commit 0d2e8ff94d

View file

@ -254,7 +254,7 @@ static void print_udev_format(const char *name, const char *value)
printf("ID_FS_%s=%s\n", name, enc);
} else if (!strcmp(name, "UUID") ||
!strcmp(name, "LABEL") ||
!strncmp(name, "LABEL", 5) ||
!strcmp(name, "UUID_SUB")) {
blkid_safe_string(value, safe, sizeof(safe));