Commit 57e65e2b authored by Jacob Abrams's avatar Jacob Abrams Committed by android-build-merger
Browse files

Merge "Reduce chance of zero-length keystore files" am: 71251eec

am: 586a2dbf

Change-Id: Iedd1c87c8a727b4ecb415d16a3fe14907f5206e0
parents 87884b14 586a2dbf
......@@ -51,6 +51,10 @@ size_t writeFully(int fd, uint8_t* data, size_t size) {
data += n;
remaining -= n;
}
if (TEMP_FAILURE_RETRY(fsync(fd)) == -1) {
ALOGW("fsync failed: %s", strerror(errno));
return -1;
}
return size;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment