summaryrefslogtreecommitdiffstats
path: root/xml/src
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2015-08-05 19:59:32 +0100
committerNeil Fuller <nfuller@google.com>2015-08-05 19:59:32 +0100
commite9a8e16980a5733852a829c48ed38497cff610b1 (patch)
tree0614dfdd0d5b2e53e6b963d47eb34e710095f2ca /xml/src
parent6b37f0bb40c3789833a9fd02c321d68354c6ecaf (diff)
downloadlibcore-e9a8e16980a5733852a829c48ed38497cff610b1.zip
libcore-e9a8e16980a5733852a829c48ed38497cff610b1.tar.gz
libcore-e9a8e16980a5733852a829c48ed38497cff610b1.tar.bz2
Fix FileUtilsTest.testCreateSubFile for Android One devices
createSubFile() was assuming that java.io.tmpdir did not itself contain symlink. Generally true, but not for Android One devices. Previously the createSubFile() would have tolerated a name parameter that directly referenced a symlink that pointed outside of the parent dir (though not if the symlink was actually dereferenced). This is unnecessarily lenient and making it stricter makes the code simpler. This fixes the FileUtils code and fixes/adds more cases to the FileUtilsTest to confirm it all works as intended when existing files and directories are present. This change only affects the TzDataBundleInstaller which is only executed in the event of an over-the-air timezone data update. Bug: 22836194 Change-Id: I05666c7387d469e79309a6fb0eeafba7e2a3299b
Diffstat (limited to 'xml/src')
0 files changed, 0 insertions, 0 deletions