[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Windows XP "Access denied" svn_io_rename

From: D.J. Heap <djheap_at_dhiprovo.com>
Date: 2003-10-29 17:32:14 CET

Luke Blanshard wrote:
> "D.J. Heap" <dj@shadyvale.net> wrote:
>
>>After some experimentation prompted by Brane, I found that renaming
>>while the file was still open did not work for me (testing with AV
>>software which easily recreates the problem we see) -- that is, the
>>algorithm is fine and works if other apps don't interfere. But the AV
>>software doesn't even wait for a close before it opens the file (without
>>FILE_SHARE_DELETE) so we can't rename it.
>
>
> What if svn opens the file exclusively? That ought to prevent anyone
> else from messing with it, right?
>
> Luke

Yes, but since Windows doesn't have a rename or delete by handle API,
these operations fail with a sharing violation even for the process that
did the open. I had the same thought and tried it.

DJ

**********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email
in error please notify the system manager.

This footnote also confirms that this email message has been
swept by MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 29 17:33:10 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.