aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib
diff options
context:
space:
mode:
Diffstat (limited to 'Library/UefiShellUfmCommandLib')
-rw-r--r--Library/UefiShellUfmCommandLib/dir.c2
1 files changed, 1 insertions, 1 deletions
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;