Merge "updater, minzip: Remove unnecessary O_SYNC flags." am: c7d7eb2225

am: d03ee52eb7

* commit 'd03ee52eb77d9339b6445d3b4ee5ab7678007c7c':
  updater, minzip: Remove unnecessary O_SYNC flags.

Change-Id: If20abd466bc7e6e918491e168bc00447d36f33da
This commit is contained in:
Tao Bao
2016-05-08 18:06:38 +00:00
committed by android-build-merger
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -968,7 +968,7 @@ bool mzExtractRecursive(const ZipArchive *pArchive,
setfscreatecon(secontext); 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); UNZIP_FILEMODE);
if (secontext) { if (secontext) {
+1 -1
View File
@@ -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)); S_IRUSR | S_IWUSR));
if (fd == -1) { if (fd == -1) {
printf("%s: can't open %s for write: %s\n", name, dest_path, strerror(errno)); printf("%s: can't open %s for write: %s\n", name, dest_path, strerror(errno));