apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <bri...@kheldar.apana.org.au>
Subject Re: apr_file_open: APR_CREATE without APR_WRITE?
Date Wed, 04 Aug 2004 12:57:41 GMT
On Sun, 01 Aug 2004 10:38:13 -0700, Justin Erenkrantz wrote:

>--On Saturday, July 31, 2004 11:55 AM +1000 Brian Havard 
><brianh@kheldar.apana.org.au> wrote:
>
>> While porting Subversion to OS/2 I came across a failure where it tries to
>> open a file using only APR_READ | APR_CREATE. This results in an error on
>> OS/2, it doesn't seem to like the idea of creating a new file with
>> read-only access.
>>
>> Is this supposed to work or is it just lucky that happens to work on other
>> platforms? IE should I fix APR or Subversion?
>
>I'd fix APR as I think it's reasonable to use that construct to 'touch' an 
>empty file - which is what SVN does, IIRC.  Seems like OS/2 should just 
>implicitly add write behind the scenes in this corner case...  -- justin

Ok, so creating a file isn't consider writing to it, just writing a
directory entry? I guess I can make the OS/2 implementation work that way
if that's considered the standard.

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------


Mime
View raw message