mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 477934 nsSafeFileOutputStream (prefs.js) not safe from system crashes
r=biesi
This commit is contained in:
parent
3e25d2e548
commit
2fa5162995
@ -531,6 +531,7 @@ nsSafeFileOutputStream::Close()
|
||||
NS_IMETHODIMP
|
||||
nsSafeFileOutputStream::Finish()
|
||||
{
|
||||
Flush();
|
||||
nsresult rv = nsFileOutputStream::Close();
|
||||
|
||||
// if there is no temp file, don't try to move it over the original target.
|
||||
|
Loading…
Reference in New Issue
Block a user