Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address the fact that errors from copyout(9) are not properly percolated up on success #169

Closed
wants to merge 1 commit into from

Conversation

ngie-eign
Copy link
Contributor

@ngie-eign ngie-eign commented Oct 13, 2018

This change makes a best effort attempt to ensure that the error returned from fo_sendfile
is preserved for diagnostic reasons.

Bug: 232210
Submitted by: ngie

@ngie-eign
Copy link
Contributor Author

Hi @glebius ! I was wondering if you might be able to review this change.

@ngie-eign ngie-eign force-pushed the bug-232210 branch 2 times, most recently from 0cf4485 to 3448287 Compare October 17, 2018 04:27
sys/kern/kern_sendfile.c Outdated Show resolved Hide resolved
@ngie-eign
Copy link
Contributor Author

@bsdimp: could you please review this PR?

…lated up on failure

Not properly reporting this error can result in values "returned" from
`sbytes` being misinterpreted by the caller.

Bug:	232210
@ngie-eign ngie-eign closed this Jan 24, 2019
@ngie-eign ngie-eign deleted the bug-232210 branch January 24, 2019 22:44
freebsd-git pushed a commit that referenced this pull request Feb 29, 2024
Minor bug fixes to man page, tests, fnematch (fixing erroneous output),
string escape sequences and improve flow control by optimizing gototab.

Nov 24, 2023:
        Fix issue #199: gototab improvements to dynamically resize the
        table, qsort and bsearch to improve the lookup speed as the
        table gets larger for multibyte input. thanks to Arnold Robbins.

Nov 23, 2023:
	Fix Issue #169, related to escape sequences in strings.
	Thanks to Github user rajeevvp.
	Fix Issue #147, reported by Github user drawkula, and fixed
	by Miguel Pineiro Jr.

Nov 20, 2023:
	rewrite of fnematch to fix a number of issues, including
	extraneous output, out-of-bounds access, number of bytes
	to push back after a failed match etc.
	thanks to Miguel Pineiro Jr.

Nov 15, 2023:
	Man page edit, regression test fixes. thanks to Arnold Robbins
	consolidation of sub and gsub into dosub, removing duplicate
	code. thanks to Miguel Pineiro Jr.
	gcc replaced with cc everywhere.

Sponsored by:		Netflix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants