[Not part of build] Part of bug 98476. If the file doesn't exist, it's not an error.

git-svn-id: svn://10.0.0.236/trunk@120449 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bnesse%netscape.com
2002-05-01 19:08:46 +00:00
parent 17b2eddabd
commit ea06e31c80

View File

@@ -137,7 +137,8 @@ nsresult nsSafeSaveFile::PostProcessSave(void)
// rename the previous save to .bak (i.e. <filename.js> to <filename.bak>)
backupFile->SetLeafName(mTargetFileName);
rv = backupFile->MoveTo(0, fileName);
if (NS_FAILED(rv))
// it's only an error if the file exists
if ((NS_FAILED(rv)) && (rv != NS_ERROR_FILE_NOT_FOUND))
return rv;
}