[Bug 232207] sendfile(2) does not document potential for ENOTCAPABLE in ERRORS

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Oct 13 01:29:42 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232207

Enji Cooper <yaneurabeya at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|sendfile(2) missing some    |sendfile(2) does not
                   |documented ERRORS           |document potential for
                   |                            |ENOTCAPABLE in ERRORS

--- Comment #1 from Enji Cooper <yaneurabeya at gmail.com> ---
(In reply to Enji Cooper from comment #0)
> 
>     [EINVAL]           The iovcnt argument was less than or equal to 0, or
>                        greater than IOV_MAX.
>
>     [EINVAL]           One of the iov_len values in the iov array was
>                        negative.
>
>     [EINVAL]           The sum of the iov_len values in the iov array
>                        overflowed a 32-bit integer.

I did some more inspection, and I don't think this assumption is correct. It
looks like the first ERROR case is handled

The ENOTCAPABLE part is definitely an issue. CAP_PREAD needs to be set on `fd`
and CAP_SEND needs to be set on `s`.

I submitted a pull request for the ENOTCAPABLE documentation item:
https://github.com/freebsd/freebsd/pull/170 .

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list