summaryrefslogtreecommitdiffstats
path: root/uncrypt/uncrypt.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-11-05 19:02:05 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-11-05 19:02:05 +0100
commite4a3da9f51ca1e02179a1e0851f26015f4ec07fa (patch)
treebe608dde301d60b99f65325f914fd837549f8de0 /uncrypt/uncrypt.cpp
parentMerge "recovery: Depend on mkfs.f2fs only if needed." (diff)
parentuncrypt: remove O_SYNC to avoid time-out failures (diff)
downloadandroid_bootable_recovery-e4a3da9f51ca1e02179a1e0851f26015f4ec07fa.tar
android_bootable_recovery-e4a3da9f51ca1e02179a1e0851f26015f4ec07fa.tar.gz
android_bootable_recovery-e4a3da9f51ca1e02179a1e0851f26015f4ec07fa.tar.bz2
android_bootable_recovery-e4a3da9f51ca1e02179a1e0851f26015f4ec07fa.tar.lz
android_bootable_recovery-e4a3da9f51ca1e02179a1e0851f26015f4ec07fa.tar.xz
android_bootable_recovery-e4a3da9f51ca1e02179a1e0851f26015f4ec07fa.tar.zst
android_bootable_recovery-e4a3da9f51ca1e02179a1e0851f26015f4ec07fa.zip
Diffstat (limited to 'uncrypt/uncrypt.cpp')
-rw-r--r--uncrypt/uncrypt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/uncrypt/uncrypt.cpp b/uncrypt/uncrypt.cpp
index aef480035..6db438258 100644
--- a/uncrypt/uncrypt.cpp
+++ b/uncrypt/uncrypt.cpp
@@ -234,7 +234,7 @@ static int produce_block_map(const char* path, const char* map_file, const char*
int wfd = -1;
unique_fd wfd_holder(wfd);
if (encrypted) {
- wfd = open(blk_dev, O_WRONLY | O_SYNC);
+ wfd = open(blk_dev, O_WRONLY);
wfd_holder = unique_fd(wfd);
if (wfd == -1) {
ALOGE("failed to open fd for writing: %s\n", strerror(errno));