Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Dec 2008 04:16:41 +0100
From:      Mitar <mmitar@gmail.com>
To:        Mel <fbsd.questions@rachie.is-a-geek.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Open with O_APPEND fails
Message-ID:  <f63c4b2d0812271916l180c6c9bt9678cebc8f808587@mail.gmail.com>
In-Reply-To: <200812271517.46409.fbsd.questions@rachie.is-a-geek.net>
References:  <f63c4b2d0812271246u18a881e6j87e0054c24f4661a@mail.gmail.com> <200812271517.46409.fbsd.questions@rachie.is-a-geek.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi!

On Sun, Dec 28, 2008 at 1:17 AM, Mel
<fbsd.questions@rachie.is-a-geek.net> wrote:
>    15          fd = open(fname, O_WRONLY|O_APPEND);

Try only with O_APPEND, without O_WRONLY.

I have just found a bug report about that:

https://issues.apache.org/bugzilla/show_bug.cgi?id=45923

But the question remains: why this fails? It works on Linux, as it is
seen from bug report it works also on FreeBSD 6.x, why it does not
work anymore on FreeBSD 7.x? Is it correct that it does not work? I
have not found anywhere written that O_WRONLY should be specified with
O_APPEND.


Mitar



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f63c4b2d0812271916l180c6c9bt9678cebc8f808587>