[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    svn commit: r789664 -
From:       mturk () apache ! org
Date:       2009-06-30 10:39:04
Message-ID: 20090630103904.4FD9423888CF () eris ! apache ! org
[Download RAW message or body]

Author: mturk
Date: Tue Jun 30 10:39:03 2009
New Revision: 789664

URL: http://svn.apache.org/viewvc?rev=789664&view=rev
Log:
Guard against already opened files with own sharing flags.

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=789664&r1=789663&r2=789664&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 Tue Jun 30 10:39:03 \
2009 @@ -793,7 +793,7 @@
 
         fh = CreateFileW(J2W(pathname),
                          0, /* Query attributes without accessing the file */
-                         0,
+                         FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
                          NULL,
                          OPEN_EXISTING,
                          FILE_FLAG_BACKUP_SEMANTICS,


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic