summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-05-08 20:06:38 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-05-08 20:06:38 +0200
commiteef053fda1ed84b71f245dfe2890fd35c2ffe3bc (patch)
tree171e375828cf00e1ae4456fe35ba35ad66aede61 /updater
parentMerge "applypatch: Use bsdiff from external/bsdiff." am: 704cac2f99 (diff)
parentMerge "updater, minzip: Remove unnecessary O_SYNC flags." (diff)
downloadandroid_bootable_recovery-eef053fda1ed84b71f245dfe2890fd35c2ffe3bc.tar
android_bootable_recovery-eef053fda1ed84b71f245dfe2890fd35c2ffe3bc.tar.gz
android_bootable_recovery-eef053fda1ed84b71f245dfe2890fd35c2ffe3bc.tar.bz2
android_bootable_recovery-eef053fda1ed84b71f245dfe2890fd35c2ffe3bc.tar.lz
android_bootable_recovery-eef053fda1ed84b71f245dfe2890fd35c2ffe3bc.tar.xz
android_bootable_recovery-eef053fda1ed84b71f245dfe2890fd35c2ffe3bc.tar.zst
android_bootable_recovery-eef053fda1ed84b71f245dfe2890fd35c2ffe3bc.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index 4f5268401..bab2fe166 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -559,7 +559,7 @@ Value* PackageExtractFileFn(const char* name, State* state,
}
{
- int fd = TEMP_FAILURE_RETRY(ota_open(dest_path, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC,
+ int fd = TEMP_FAILURE_RETRY(ota_open(dest_path, O_WRONLY | O_CREAT | O_TRUNC,
S_IRUSR | S_IWUSR));
if (fd == -1) {
printf("%s: can't open %s for write: %s\n", name, dest_path, strerror(errno));