Changes in directory llvm/lib/System/Win32:

Path.inc updated: 1.41 -> 1.42
---
Log message:

Unlike Unix, Windows won't let a file be implicitly replaced via renaming 
without explicit permission.

---
Diffs of the changes:  (+1 -1)

 Path.inc |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/System/Win32/Path.inc
diff -u llvm/lib/System/Win32/Path.inc:1.41 llvm/lib/System/Win32/Path.inc:1.42
--- llvm/lib/System/Win32/Path.inc:1.41 Sat Apr 29 13:41:44 2006
+++ llvm/lib/System/Win32/Path.inc      Sat May  6 21:51:51 2006
@@ -682,7 +682,7 @@
 
 bool
 Path::renamePathOnDisk(const Path& newName) {
-  if (!MoveFile(path.c_str(), newName.c_str()))
+  if (!MoveFileEx(path.c_str(), newName.c_str(), MOVEFILE_REPLACE_EXISTING))
     ThrowError("Can't move '" + path +
                "' to '" + newName.path + "': ");
   return true;



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to