commit | 25dd0386fe69460cd1d39de116197dd2c7bf9ec2 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Mon Feb 01 11:40:37 2016 -0800 |
committer | Yabin Cui <yabinc@google.com> | Mon Feb 01 14:43:14 2016 -0800 |
tree | 8ceba3628ee8fe9f1a928c4ea8ef1426c5d73c11 | |
parent | 9d72d4175b06a70c64c8867ff65b3c4c2181c9a9 [diff] |
uncrypt: generate map file by renaming tmp file. Writing map file directly can break consistency in map file if it fails in the middle. Instead, we write a temporary file and rename the temporary file to map file. Bug: 26883096 Change-Id: I5e99e942e1b75e758af5f7a48f8a08a0b0041d6a