rbb@rkbloom.net wrote:
>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.
>
>:-(
>
>
It Just Works with APR, with no changes; see my other post. We could
still revert to the old way on Win9x, if anyone is still interested in
supporting that "OS".
--
Brane Čibej <brane_at_xbc.nu> http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 27 23:56:38 2003