[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-27 19:08:23 CET

rbb@rkbloom.net wrote:
[snip]
>
> If apr_open on Windows is taught to respect the group and world
> permissions, this problem can be solved. Currently apr_open on Windows
> always opens everything share_read and share_write. This should be
> conditional based on group/world permissions (least permissive wins).
>
> For example:
>
> group perms world perms share_mode
> 7 0 0
> 7 7 SHARE_READ | SHARE_WRITE
> 5 4 SHARE_READ
>
> and so on.
>
> If you make this change, you can solve this bug with straight APR calls.
>
> Ryan

 From some quick testing, it looks like FILE_SHARE_DELETE is also
required for MoveFileEx to rename a file that is currently open. It
does work even if I have the file open, though. I haven't tried it on
Win9x.

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 Mon Oct 27 19:10:28 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.