Work on issue #3101415: Crespo apps seem to have their UID changed over time.

fsync!

Change-Id: Ie6c5397202579935ac69bf61d3e7b3081ecf269c
This commit is contained in:
Dianne Hackborn
2010-10-15 12:54:40 -07:00
parent efb581018b
commit 8bdf5935c0
11 changed files with 52 additions and 9 deletions

View File

@@ -94,6 +94,7 @@ public class SystemKeyStore {
FileOutputStream fos = new FileOutputStream(keyFile);
fos.write(retKey);
fos.flush();
FileUtils.sync(fos);
fos.close();
FileUtils.setPermissions(keyFile.getName(), (FileUtils.S_IRUSR | FileUtils.S_IWUSR),
-1, -1);