]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154324: Fix os.sendfile() error reporting on illumos (GH-154327)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 28 Jul 2026 17:14:00 +0000 (20:14 +0300)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2026 17:14:00 +0000 (20:14 +0300)
commite3634bb44f7f1395dcb1b7ab3736811e9e2a4589
tree876e44d0d4bb26acd346419ee3f3a409f1d27232
parent4f3e85640f72ee79d819ea3546868aa6544a6f49
gh-154324: Fix os.sendfile() error reporting on illumos (GH-154327)

illumos sendfile(3EXT) returns the number of transferred bytes by adding
it to the offset without initializing it, so the offset cannot be used to
detect a partial write.  Use sendfilev(3EXT), which reports the number of
transferred bytes in an explicit out parameter.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Misc/NEWS.d/next/Library/2026-07-21-08-31-55.gh-issue-154324.vDxV5U.rst [new file with mode: 0644]
Modules/posixmodule.c