[tor-bugs] #2077 [Tor]: Overwriting files can fail on Windows

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jun 12 13:39:39 UTC 2013


#2077: Overwriting files can fail on Windows
------------------------------------------------------------+---------------
 Reporter:  joebt                                           |          Owner:  nickm             
     Type:  defect                                          |         Status:  accepted          
 Priority:  normal                                          |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor                                             |        Version:                    
 Keywords:  windows tor-client 023-backport 024-deferrable  |         Parent:                    
   Points:                                                  |   Actualpoints:                    
------------------------------------------------------------+---------------
Changes (by nickm):

  * keywords:  windows tor-client => windows tor-client 023-backport
               024-deferrable
  * milestone:  Tor: unspecified => Tor: 0.2.4.x-final


Comment:

 Based on a comment of rransom's on #8795, on the following parenthetical
 on MSDN, and some simple experiments, I think that a fix here could be as
 simple as using FILE_SHARE_DELETE when opening a Windows file for memory
 mapping.  I added 4f4fc63fea0589a4fa03f3859dc27860cdde75af to maint-0.2.4
 to test this theory.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2077#comment:38>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list