diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2016-05-26 15:21:12 +0100 |
---|---|---|
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2016-05-26 15:36:19 +0100 |
commit | a128ef7c6913e8b5f2ef4678ade5f97d7f7f452f (patch) | |
tree | 28d23a433b7148368fe61284d5d09b42c73e99cf /include/ScopedJavaUnicodeString.h | |
parent | d30ce4a7c809da1f168b7ff4d98ea1baa89183d3 (diff) |
Fix java.util.zip.ZipFile with OPEN_DELETE.
openJdk java.util.zip.ZipFile with OPEN_DELETE flag
uses unlink to remove the file just after it's opened.
This is causing trouble on /storage partition, we
can read/write unlinked file easily, but lseek seems
to fail with ENOENT.
This change introduces alternative implementation that
doesn't use unlink before closing the file.
Bug: 28901232
Bug: 28950284
Change-Id: I871a84e9a14bc1b4b9d5b0faa207579e27bcfc81
(cherry picked from commit ae6b1b85c67401fc9d986c3ffb7d9e8a9c804c30)
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions