aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-12-05 02:47:57 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-12-05 02:47:57 +0000
commit3268b4ed16b5fe7936cd0964607cc95cd43ea0f2 (patch)
treee30974e3dd5d640080b0b1463d4a3ee81b870b3e
parentbc2be82a7f52610f4462b0f0fc161628301c6723 (diff)
parent54d268e73f509c4c134317406850fd7ad938facd (diff)
downloadandroid_bootable_recovery-3268b4ed16b5fe7936cd0964607cc95cd43ea0f2.tar.gz
android_bootable_recovery-3268b4ed16b5fe7936cd0964607cc95cd43ea0f2.tar.bz2
android_bootable_recovery-3268b4ed16b5fe7936cd0964607cc95cd43ea0f2.zip
Merge "uncrypt: write permission for f2fs_pin_file" into pie-gsi
-rw-r--r--uncrypt/uncrypt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/uncrypt/uncrypt.cpp b/uncrypt/uncrypt.cpp
index 95f40c71..0ec226e2 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;