On Saturday 27 December 2008 21:06:58 Jonathan Chen wrote:
On Sun, Dec 28, 2008 at 05:46:39AM +0100, Mitar wrote:
Hi!
On Sun, Dec 28, 2008 at 5:10 AM, Mel
fbsd.questi...@rachie.is-a-geek.net wrote:
open(2) will succeed but write(2) will fail with EBADF as documented
(and I
On Saturday 27 December 2008 11:46:03 Mitar wrote:
Hi!
I discovered that open syscall with only O_APPEND fails with
permission denied if an user does not have rights to write to a file
(what is normal) even if it is root (what is a surprise). For example,
if I have a file owned by www:www
Hi!
On Sun, Dec 28, 2008 at 1:17 AM, Mel
fbsd.questi...@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
On Sun, Dec 28, 2008 at 04:16:41AM +0100, Mitar wrote:
Hi!
On Sun, Dec 28, 2008 at 1:17 AM, Mel
fbsd.questi...@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:
Hi!
On Sun, Dec 28, 2008 at 4:58 AM, Gary Kline kl...@thought.org wrote:
Just a thought, but have you figured out what the value of
that OR is? then check the 6.x and 7.x src.
You mean O_RDONLY? Is not that 0? So that O_RDONLY | O_APPEND is the
same as O_APPEND? (That is why I am writing about
On Saturday 27 December 2008 18:16:41 Mitar wrote:
Hi!
On Sun, Dec 28, 2008 at 1:17 AM, Mel
fbsd.questi...@rachie.is-a-geek.net wrote:
15 fd = open(fname, O_WRONLY|O_APPEND);
Try only with O_APPEND, without O_WRONLY.
Why would you?
open(2) will succeed but write(2) will fail
Hi!
On Sun, Dec 28, 2008 at 5:10 AM, Mel
fbsd.questi...@rachie.is-a-geek.net wrote:
open(2) will succeed but write(2) will fail with EBADF as documented (and I
verified this behavior). Still no EACCES as you and the bugreporter are
seeing.
Where is documented that write would fail if file is
On Sun, Dec 28, 2008 at 05:03:59AM +0100, Mitar wrote:
Hi!
On Sun, Dec 28, 2008 at 4:58 AM, Gary Kline kl...@thought.org wrote:
Just a thought, but have you figured out what the value of
that OR is? then check the 6.x and 7.x src.
You mean O_RDONLY? Is not that 0? So that O_RDONLY |
On Sun, Dec 28, 2008 at 05:46:39AM +0100, Mitar wrote:
Hi!
On Sun, Dec 28, 2008 at 5:10 AM, Mel
fbsd.questi...@rachie.is-a-geek.net wrote:
open(2) will succeed but write(2) will fail with EBADF as documented (and I
verified this behavior). Still no EACCES as you and the bugreporter are