apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jus...@erenkrantz.com>
Subject Re: apr_file_open: APR_CREATE without APR_WRITE?
Date Sun, 01 Aug 2004 17:38:13 GMT
--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

Mime
View raw message