Author: mturk
Date: Wed May 20 15:48:11 2009
New Revision: 776742

URL: http://svn.apache.org/viewvc?rev=776742&view=rev
Log:
Remove symlink directory before trying to crete it

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c?rev=776742&r1=776741&r2=776742&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c Wed May 20 
15:48:11 2009
@@ -157,7 +157,8 @@
             if (tlen > 0 && fpath[tlen - 1] == L'\\') {
                 fpath[--tlen] = L'\0';
             }
-
+            /* Remove the link directory if already exists */
+            RemoveDirectoryW(J2W(lnkname));
             if (!CreateDirectoryW(J2W(lnkname), NULL)) {
                 /* Failed to create link name directory */
                 ACR_ThrowException(_E, THROW_NMARK, ACR_EX_EIO,


Reply via email to