diff options
author | Jaegeuk Kim <jaegeuk@google.com> | 2018-11-22 11:02:29 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-11-22 11:02:29 +0100 |
commit | 16e4bc05f9a17dad91e7fdacee4f7a9610c1883e (patch) | |
tree | 5533b8915019bffabcb8590739d9aa543c88f1c9 | |
parent | Merge "Delete the dumpkey host tool" am: 14d5540426 am: 74fa7cd1d9 (diff) | |
parent | Merge "uncrypt: write permission for f2fs_pin_file" am: d65cde7c5a (diff) | |
download | android_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.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; |