Date: Sat, 13 Oct 2018 01:29:40 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 232207] sendfile(2) does not document potential for ENOTCAPABLE in ERRORS Message-ID: <bug-232207-227-Y3qHcgHQIc@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-232207-227@https.bugs.freebsd.org/bugzilla/> References: <bug-232207-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232207 Enji Cooper <yaneurabeya@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@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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232207-227-Y3qHcgHQIc>
