We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1316d6a commit 3426f7bCopy full SHA for 3426f7b
Lib/shutil.py
@@ -224,7 +224,8 @@ def _fastcopy_sendfile(fsrc, fdst):
224
# sendfile in a mode that does not update the
225
# input fd position when reading. Hence seek the
226
# input fd to the correct position before falling
227
- # back on POSIX read/write method
+ # back on POSIX read/write method. Since sendfile
228
+ # requires mmapable infd, it should also be seekable
229
os.lseek(infd, dstpos, os.SEEK_SET)
230
231
raise _GiveupOnFastCopy(err)
0 commit comments