Merge "uncrypt: write permission for f2fs_pin_file"
This commit is contained in:
+1
-1
@@ -300,7 +300,7 @@ static int produce_block_map(const char* path, const char* map_file, const char*
|
|||||||
int head_block = 0;
|
int head_block = 0;
|
||||||
int head = 0, tail = 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) {
|
if (fd == -1) {
|
||||||
PLOG(ERROR) << "failed to open " << path << " for reading";
|
PLOG(ERROR) << "failed to open " << path << " for reading";
|
||||||
return kUncryptFileOpenError;
|
return kUncryptFileOpenError;
|
||||||
|
|||||||
Reference in New Issue
Block a user