]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix printing File() nodes in device paths.
authorWarner Losh <imp@FreeBSD.org>
Thu, 31 Aug 2017 15:53:27 +0000 (15:53 +0000)
committerWarner Losh <imp@FreeBSD.org>
Thu, 31 Aug 2017 15:53:27 +0000 (15:53 +0000)
commit0d802f5a7a863a291ffca9d0578dc9abdb00f6f4
tree4b840a8160087b332db583cf2e0d68279e71655f
parent5a21cd194146970e0ee1fe13c97a856901fd900f
Fix printing File() nodes in device paths.

Device paths encoded into the FILEPATH_DEVICE_PATH are UCS2 not
ASCII/UTF8. Convert to utf8 and print that when printing File
paths. Also, since File may be at the end of a long device path,
output File() around the path so it doesn't just show up as random
nodes that might accidentally match real node paths names and cause
errors.
lib/libefivar/efivar-dp-format.c