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:
parent
f0ca7e80d7
commit
0d2e8ff94d
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue