Comment 9 for bug 446897

Revision history for this message
Martin Pitt (pitti) wrote :

So the old udev's prober called volume_id_set_label_string() for all file system types, which stripped trailing whitespace.

In blkid, ./shlibs/blkid/src/probe.c blkid_probe_set_label() and ./shlibs/blkid/src/encode.c blkid_safe_string() do the same. But ./shlibs/blkid/src/probers/iso9660.c probe_iso9660() only calls blkid_probe_set_label() for non-Joliet, for Joliet it uses blkid_probe_set_utf8label().

So for consistency, blkid_probe_set_utf8label() should skip trailing spaces as well. Alternatively, spaces need to be stripped in probe_iso9660() directly.