From 53a6fa5479cd1b8ce54500de087f33a9f595a8dd Mon Sep 17 00:00:00 2001 From: Joursoir Date: Wed, 8 Dec 2021 20:31:29 +0300 Subject: dir: open files with RW mode --- Library/UefiShellUfmCommandLib/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/UefiShellUfmCommandLib/dir.c b/Library/UefiShellUfmCommandLib/dir.c index 9160f9f..782334d 100644 --- a/Library/UefiShellUfmCommandLib/dir.c +++ b/Library/UefiShellUfmCommandLib/dir.c @@ -13,7 +13,7 @@ struct dir_list *dirl_alloc(CHAR16 *search_path, CONST UINT64 attr) UINTN length = 0; struct dir_list *dl; - status = ShellOpenFileMetaArg(search_path, EFI_FILE_MODE_READ, &list_head); + status = ShellOpenFileMetaArg(search_path, EFI_FILE_MODE_WRITE|EFI_FILE_MODE_READ, &list_head); if(EFI_ERROR(status)) return NULL; -- cgit v1.2.3-18-g5258