diff options
author | Jaegeuk Kim <jaegeuk@google.com> | 2018-11-22 10:34:33 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-11-22 10:34:33 +0100 |
commit | d65cde7c5ada84bd2fcb92b172e3e8d198490843 (patch) | |
tree | 5533b8915019bffabcb8590739d9aa543c88f1c9 | |
parent | Merge "Delete the dumpkey host tool" (diff) | |
parent | uncrypt: write permission for f2fs_pin_file (diff) | |
download | android_bootable_recovery-d65cde7c5ada84bd2fcb92b172e3e8d198490843.tar android_bootable_recovery-d65cde7c5ada84bd2fcb92b172e3e8d198490843.tar.gz android_bootable_recovery-d65cde7c5ada84bd2fcb92b172e3e8d198490843.tar.bz2 android_bootable_recovery-d65cde7c5ada84bd2fcb92b172e3e8d198490843.tar.lz android_bootable_recovery-d65cde7c5ada84bd2fcb92b172e3e8d198490843.tar.xz android_bootable_recovery-d65cde7c5ada84bd2fcb92b172e3e8d198490843.tar.zst android_bootable_recovery-d65cde7c5ada84bd2fcb92b172e3e8d198490843.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; |