]> git.ipfire.org Git - thirdparty/util-linux.git/commit - libblkid/src/probe.c
libblkid: trim tailing whitespace from unicode LABELs
authorKarel Zak <kzak@redhat.com>
Tue, 22 Sep 2009 10:32:34 +0000 (12:32 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Sep 2009 10:41:03 +0000 (12:41 +0200)
commitc2dbd49bdfd84e9145044ae564d5ef841e60a41e
tree6f5ed95c3ebc78ebca1493639602a95f38449f81
parent734634b29a4963b8b01021856f46e34c2734e6c3
libblkid: trim tailing whitespace from unicode LABELs

old version:
$ ./blkid -o udev -p iso-joliet.img
ID_FS_LABEL=ThisIsLabel
ID_FS_LABEL_ENC=ThisIsLabel\x20\x20\x20\x20\x20
ID_FS_VERSION=Joliet\x20Extension
ID_FS_TYPE=iso9660
ID_FS_USAGE=filesystem

new version:
$ ./blkid -o udev -p iso-joliet.img
ID_FS_LABEL=ThisIsLabel
ID_FS_LABEL_ENC=ThisIsLabel
ID_FS_VERSION=Joliet\x20Extension
ID_FS_TYPE=iso9660
ID_FS_USAGE=filesystem

Reported-by: Maxim Levitsky <maximlevitsky@gmail.com>
Addresses-Ubuntu-Bug: #432215
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/blkidP.h
shlibs/blkid/src/partitions/partitions.c
shlibs/blkid/src/probe.c
shlibs/blkid/src/superblocks/superblocks.c