From 08d338442b1751dc29dc1e2f0d5b6e8aaa86e1cc Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Thu, 14 Nov 2002 19:41:18 +0000 Subject: [PATCH] 150156 type fix for OS/2 - do a copy if move fails because file already exists git-svn-id: svn://10.0.0.236/trunk@133840 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsLocalFileOS2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/xpcom/io/nsLocalFileOS2.cpp b/mozilla/xpcom/io/nsLocalFileOS2.cpp index c374eb7f6de..89c986123da 100644 --- a/mozilla/xpcom/io/nsLocalFileOS2.cpp +++ b/mozilla/xpcom/io/nsLocalFileOS2.cpp @@ -912,7 +912,7 @@ nsLocalFile::CopySingleFile(nsIFile *sourceFile, nsIFile *destParent, const nsAC rc = DosMove(filePath.get(), (PSZ)NS_CONST_CAST(char*, destPath.get())); } - if (!move || rc == ERROR_NOT_SAME_DEVICE) { + if (!move || rc == ERROR_NOT_SAME_DEVICE || rc == ERROR_ACCESS_DENIED) { /* will get an error if the destination and source files aren't on the * same drive. "MoveFile()" on Windows will go ahead and move the * file without error, so we need to do the same IBM-AKR