diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-11-25 05:14:05 +0100 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-11-25 05:14:05 +0100 |
commit | 26798d7a6cba32bf5f62d7df8d82ca0edb6bd88c (patch) | |
tree | 5533b8915019bffabcb8590739d9aa543c88f1c9 | |
parent | Snap for 5145130 from 2ae9ad72c237d535f7bce5c60cc3c2cd9b50f803 to qt-release (diff) | |
parent | Merge "uncrypt: write permission for f2fs_pin_file" am: d65cde7c5a am: 04630e738e (diff) | |
download | android_bootable_recovery-26798d7a6cba32bf5f62d7df8d82ca0edb6bd88c.tar android_bootable_recovery-26798d7a6cba32bf5f62d7df8d82ca0edb6bd88c.tar.gz android_bootable_recovery-26798d7a6cba32bf5f62d7df8d82ca0edb6bd88c.tar.bz2 android_bootable_recovery-26798d7a6cba32bf5f62d7df8d82ca0edb6bd88c.tar.lz android_bootable_recovery-26798d7a6cba32bf5f62d7df8d82ca0edb6bd88c.tar.xz android_bootable_recovery-26798d7a6cba32bf5f62d7df8d82ca0edb6bd88c.tar.zst android_bootable_recovery-26798d7a6cba32bf5f62d7df8d82ca0edb6bd88c.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; |