efi_loader: do not add \ in efi_fs_from_name()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 23 Feb 2019 10:20:23 +0000 (11:20 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 2 Mar 2019 22:34:26 +0000 (23:34 +0100)
commit30a231dcce0b4daf6102cffcdc5c81db8ddaaa48
tree1b411db32ef5659dc93c5a279c27350d700cb4ce
parentcfba74d0bef350d81241b059180bcc5a1e93bdfa
efi_loader: do not add \ in efi_fs_from_name()

In the `efidebug boot add` command we do not want an unsolicited leading
backslash added to the file name.

There is no good reason to mark a loaded file with a backslash as absolute.
Anyway when reading files the file name will be interpreted as relative to
root directory of the device.

So let's get rid of this backslash.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_device_path.c