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
> >
> > wrote:
> > > open(2) will succeed but write(2) will fail with EBADF as documented
> > > (and I verified this behavior). S
On Sun, Dec 28, 2008 at 05:46:39AM +0100, Mitar wrote:
> Hi!
>
> On Sun, Dec 28, 2008 at 5:10 AM, Mel
> 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 docu
On Sun, Dec 28, 2008 at 05:03:59AM +0100, Mitar wrote:
> Hi!
>
> On Sun, Dec 28, 2008 at 4:58 AM, Gary Kline 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
Hi!
On Sun, Dec 28, 2008 at 5:10 AM, Mel
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 opened only with
O_APPEND? Just O
On Saturday 27 December 2008 18:16:41 Mitar wrote:
> Hi!
>
> On Sun, Dec 28, 2008 at 1:17 AM, Mel
>
> 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 with EBADF as documented (a
Hi!
On Sun, Dec 28, 2008 at 4:58 AM, Gary Kline 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 O_APPEND flag a
On Sun, Dec 28, 2008 at 04:16:41AM +0100, Mitar wrote:
> Hi!
>
> On Sun, Dec 28, 2008 at 1:17 AM, Mel
> 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/bugz
Hi!
On Sun, Dec 28, 2008 at 1:17 AM, Mel
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 work
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
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 and with 644 permissions root cannot
do open("testfile",
10 matches
Mail list logo