commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r789664 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c
Date Tue, 30 Jun 2009 10:39:04 GMT
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,



Mime
View raw message