summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@google.com>2018-11-22 11:02:29 +0100
committerandroid-build-merger <android-build-merger@google.com>2018-11-22 11:02:29 +0100
commit16e4bc05f9a17dad91e7fdacee4f7a9610c1883e (patch)
tree5533b8915019bffabcb8590739d9aa543c88f1c9
parentMerge "Delete the dumpkey host tool" am: 14d5540426 am: 74fa7cd1d9 (diff)
parentMerge "uncrypt: write permission for f2fs_pin_file" am: d65cde7c5a (diff)
downloadandroid_bootable_recovery-16e4bc05f9a17dad91e7fdacee4f7a9610c1883e.tar
android_bootable_recovery-16e4bc05f9a17dad91e7fdacee4f7a9610c1883e.tar.gz
android_bootable_recovery-16e4bc05f9a17dad91e7fdacee4f7a9610c1883e.tar.bz2
android_bootable_recovery-16e4bc05f9a17dad91e7fdacee4f7a9610c1883e.tar.lz
android_bootable_recovery-16e4bc05f9a17dad91e7fdacee4f7a9610c1883e.tar.xz
android_bootable_recovery-16e4bc05f9a17dad91e7fdacee4f7a9610c1883e.tar.zst
android_bootable_recovery-16e4bc05f9a17dad91e7fdacee4f7a9610c1883e.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;