aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-12-08 20:31:29 +0300
committerJoursoir <chat@joursoir.net>2021-12-08 20:31:29 +0300
commit53a6fa5479cd1b8ce54500de087f33a9f595a8dd (patch)
tree96b1a6e508d675180a1c9d3c790506f79606dfe1 /Library
parentac500ff44d8dae723bfba9f1e4a9687ab16b3f03 (diff)
downloadufm-53a6fa5479cd1b8ce54500de087f33a9f595a8dd.tar.gz
ufm-53a6fa5479cd1b8ce54500de087f33a9f595a8dd.tar.bz2
ufm-53a6fa5479cd1b8ce54500de087f33a9f595a8dd.zip
dir: open files with RW mode
Diffstat (limited to 'Library')
-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;