Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add comment summarizing the issue
  • Loading branch information
kulikjak committed Sep 2, 2020
commit 94cbb652e0e62d5698f04a1384e5339dc410d14e
2 changes: 2 additions & 0 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -9519,6 +9519,8 @@ os_sendfile_impl(PyObject *module, int out_fd, int in_fd, PyObject *offobj,
return NULL;

#if defined(__sun) && defined(__SVR4)
Comment thread
kulikjak marked this conversation as resolved.
// On Solaris, sendfile raises EINVAL rather than returning 0
// when the offset is equal or bigger than the in_fd size.
int res;
struct stat st;

Expand Down