Re: Another test-dup3 assertion with the new kernel

2012-10-10 Thread Richard W.M. Jones
On Wed, Oct 10, 2012 at 11:05:54AM -0600, Eric Blake wrote: > On 10/10/2012 07:23 AM, Richard W.M. Jones wrote: > > > > Fixing the other two kernel bugs, leaves me with two further > > assertions. This time I'm not so sure that this is a kernel bug. > > > > /* The destination must be valid

Re: Another test-dup3 assertion with the new kernel

2012-10-10 Thread Eric Blake
On 10/10/2012 07:23 AM, Richard W.M. Jones wrote: > > Fixing the other two kernel bugs, leaves me with two further > assertions. This time I'm not so sure that this is a kernel bug. > > /* The destination must be valid. */ > errno = 0; > ASSERT (dup3 (fd, -2, o_flags) == -1);

Another test-dup3 assertion with the new kernel

2012-10-10 Thread Richard W.M. Jones
Fixing the other two kernel bugs, leaves me with two further assertions. This time I'm not so sure that this is a kernel bug. /* The destination must be valid. */ errno = 0; ASSERT (dup3 (fd, -2, o_flags) == -1); ASSERT (errno == EBADF); <--- here