From 8afb6d4f9eb8e8a9c675a8792505a95f26fb3f89 Mon Sep 17 00:00:00 2001 From: "sgehani%netscape.com" Date: Thu, 27 Jan 2000 23:18:06 +0000 Subject: [PATCH] Fix for XPInstall horkage on the Mac. b = 25288 r = sdagley a = mcafee (ssu will be watching the tree in my absence.) --- xpcom/io/nsLocalFileMac.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xpcom/io/nsLocalFileMac.cpp b/xpcom/io/nsLocalFileMac.cpp index f65c1ceca396..106d5f8f8fff 100644 --- a/xpcom/io/nsLocalFileMac.cpp +++ b/xpcom/io/nsLocalFileMac.cpp @@ -655,6 +655,11 @@ nsLocalFile::OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc **_retval) Boolean targetIsFolder; Boolean wasAliased; err = ::ResolveAliasFile(&spec, TRUE, &targetIsFolder, &wasAliased); + + // If we're going to create a file it's ok if it doesn't exist + if (err == fnfErr && (flags & PR_CREATE_FILE)) + err = noErr; + if (err != noErr) return MacErrorMapper(err);