summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@google.com>2018-09-11 02:23:27 +0200
committerJaegeuk Kim <jaegeuk@google.com>2018-11-21 21:52:29 +0100
commit051b9d87e2bf1550ab6495493b9a2cfab2aa54f1 (patch)
tree5533b8915019bffabcb8590739d9aa543c88f1c9
parentMerge "Delete the dumpkey host tool" (diff)
downloadandroid_bootable_recovery-051b9d87e2bf1550ab6495493b9a2cfab2aa54f1.tar
android_bootable_recovery-051b9d87e2bf1550ab6495493b9a2cfab2aa54f1.tar.gz
android_bootable_recovery-051b9d87e2bf1550ab6495493b9a2cfab2aa54f1.tar.bz2
android_bootable_recovery-051b9d87e2bf1550ab6495493b9a2cfab2aa54f1.tar.lz
android_bootable_recovery-051b9d87e2bf1550ab6495493b9a2cfab2aa54f1.tar.xz
android_bootable_recovery-051b9d87e2bf1550ab6495493b9a2cfab2aa54f1.tar.zst
android_bootable_recovery-051b9d87e2bf1550ab6495493b9a2cfab2aa54f1.zip
-rw-r--r--uncrypt/uncrypt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/uncrypt/uncrypt.cpp b/uncrypt/uncrypt.cpp
index cf068ba81..d1970e534 100644
--- a/uncrypt/uncrypt.cpp
+++ b/uncrypt/uncrypt.cpp
@@ -300,7 +300,7 @@ static int produce_block_map(const char* path, const char* map_file, const char*
int head_block = 0;
int head = 0, tail = 0;
- android::base::unique_fd fd(open(path, O_RDONLY));
+ android::base::unique_fd fd(open(path, O_RDWR));
if (fd == -1) {
PLOG(ERROR) << "failed to open " << path << " for reading";
return kUncryptFileOpenError;