summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlistair Strachan <alistair.strachan@imgtec.com>2016-05-08 20:03:54 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-05-08 20:03:54 +0200
commitd03ee52eb77d9339b6445d3b4ee5ab7678007c7c (patch)
treedab2c28ccb196fcafca7356b2f4b40944e45e405
parentMerge "applypatch: Use bsdiff from external/bsdiff." (diff)
parentMerge "updater, minzip: Remove unnecessary O_SYNC flags." (diff)
downloadandroid_bootable_recovery-d03ee52eb77d9339b6445d3b4ee5ab7678007c7c.tar
android_bootable_recovery-d03ee52eb77d9339b6445d3b4ee5ab7678007c7c.tar.gz
android_bootable_recovery-d03ee52eb77d9339b6445d3b4ee5ab7678007c7c.tar.bz2
android_bootable_recovery-d03ee52eb77d9339b6445d3b4ee5ab7678007c7c.tar.lz
android_bootable_recovery-d03ee52eb77d9339b6445d3b4ee5ab7678007c7c.tar.xz
android_bootable_recovery-d03ee52eb77d9339b6445d3b4ee5ab7678007c7c.tar.zst
android_bootable_recovery-d03ee52eb77d9339b6445d3b4ee5ab7678007c7c.zip
Diffstat (limited to '')
-rw-r--r--minzip/Zip.c2
-rw-r--r--updater/install.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/minzip/Zip.c b/minzip/Zip.c
index 9f550f8b4..d557daa7f 100644
--- a/minzip/Zip.c
+++ b/minzip/Zip.c
@@ -968,7 +968,7 @@ bool mzExtractRecursive(const ZipArchive *pArchive,
setfscreatecon(secontext);
}
- int fd = open(targetFile, O_CREAT|O_WRONLY|O_TRUNC|O_SYNC,
+ int fd = open(targetFile, O_CREAT|O_WRONLY|O_TRUNC,
UNZIP_FILEMODE);
if (secontext) {
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));