diff options
author | Jaegeuk Kim <jaegeuk@google.com> | 2018-09-11 02:23:27 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@google.com> | 2018-11-21 21:52:29 +0100 |
commit | 051b9d87e2bf1550ab6495493b9a2cfab2aa54f1 (patch) | |
tree | 5533b8915019bffabcb8590739d9aa543c88f1c9 | |
parent | Merge "Delete the dumpkey host tool" (diff) | |
download | android_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.cpp | 2 |
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; |