efi_loader: enable file SetInfo()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 6 Apr 2019 16:17:39 +0000 (18:17 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 7 Apr 2019 12:17:06 +0000 (14:17 +0200)
commitfbe4c7df0087c4f26ca7acf21cf0b7c0bc2fbfd2
treed6bea750ab5b893e0c6242411527f11804638c91
parentcb0c2a7430788b4cd13d303a02a021bb53e3db4b
efi_loader: enable file SetInfo()

EFI shell command edit uses the SetInfo() methods to unset the read only
attribute of the file to be edited. So let efi_file_setinfo() return
success in this case.

Return an error if the function is called for to rename or resize a file
as we do not support this yet.

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