diff options
author | Jaegeuk Kim <jaegeuk@google.com> | 2018-11-22 10:58:27 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-11-22 10:58:27 +0100 |
commit | a19970160659706a2f30efa3c5f34f4528e45f3b (patch) | |
tree | 5deae67c3dd359469ae16546aa18c343d13454ad | |
parent | Merge "Delete the dumpkey host tool" am: 14d5540426 (diff) | |
parent | Merge "uncrypt: write permission for f2fs_pin_file" (diff) | |
download | android_bootable_recovery-a19970160659706a2f30efa3c5f34f4528e45f3b.tar android_bootable_recovery-a19970160659706a2f30efa3c5f34f4528e45f3b.tar.gz android_bootable_recovery-a19970160659706a2f30efa3c5f34f4528e45f3b.tar.bz2 android_bootable_recovery-a19970160659706a2f30efa3c5f34f4528e45f3b.tar.lz android_bootable_recovery-a19970160659706a2f30efa3c5f34f4528e45f3b.tar.xz android_bootable_recovery-a19970160659706a2f30efa3c5f34f4528e45f3b.tar.zst android_bootable_recovery-a19970160659706a2f30efa3c5f34f4528e45f3b.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; |