[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: <rbb_at_rkbloom.net>
Date: 2003-10-27 19:44:39 CET

On Mon, 27 Oct 2003, D.J. Heap wrote:

> 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.

APR already sets the FILE_SHARE_DELETE flag for all files on NT. However,
this may be moot. Through a discussion with Will Rowe, I found a serious
flaw in doing this. The perm flag on Unix sets up a permanent permission
flag. With my suggested change, on Windows, it would be a very temporary
permission.

:-(

Ryan

---------------------------------------------------------------------
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:47:18 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.