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