Bug 407537 - Dont normalize a nonexistant file r=biesi

This commit is contained in:
sayre@gmail.com 2016-02-03 13:47:20 -05:00
parent dd7d08ab97
commit f4e5223cdd

View File

@ -929,7 +929,9 @@ nsAtomicFileOutputStream::DoOpen()
tempResult->SetFollowLinks(true);
// XP_UNIX ignores SetFollowLinks(), so we have to normalize.
tempResult->Normalize();
if (mTargetFileExists) {
tempResult->Normalize();
}
}
if (NS_SUCCEEDED(rv) && mTargetFileExists) {