Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
system_security
Commits
57e65e2b
Commit
57e65e2b
authored
8 years ago
by
Jacob Abrams
Committed by
android-build-merger
8 years ago
Browse files
Options
Download
Plain Diff
Merge "Reduce chance of zero-length keystore files" am:
71251eec
am:
586a2dbf
Change-Id: Iedd1c87c8a727b4ecb415d16a3fe14907f5206e0
parents
87884b14
586a2dbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
keystore/keystore_utils.cpp
keystore/keystore_utils.cpp
+4
-0
No files found.
keystore/keystore_utils.cpp
View file @
57e65e2b
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment