commit | cb0c2a7430788b4cd13d303a02a021bb53e3db4b | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sat Apr 06 16:27:34 2019 +0200 |
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sun Apr 07 14:17:06 2019 +0200 |
tree | 1c0ab2039fdef487b1b6131e62370fbc30a6db23 | |
parent | 19b2d895fb16f4c22e19125c84e3616c35e9ded7 [diff] |
efi_loader: correct file creation The EFI shell expects that after opening a file with EFI_FILE_MODE_CREATE GetInfo() succeeds. Up to now we do not actually create the file when method Open() of the EFI_FILE_PROTOCOL is called. If method Open() of the EFI_FILE_PROTOCOL is called with EFI_FILE_MODE_CREATE and the file does not yet exist, call fs_write() with a buffer size of zero to actually create the file. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>