[issue43388] shutil._fastcopy_sendfile() makes wrong (?) assumption about sendfile() return value
Lorenz Hüdepohl added the comment: Sure, as written it would. As I said: Error handling etc. left out for clarity, just to point out the new structure. -- ___ Python tracker <https://bugs.python.org/issue43
[issue43388] shutil._fastcopy_sendfile() makes wrong (?) assumption about sendfile() return value
New submission from Lorenz Hüdepohl : Since version 3.8, the shutil.copyfile() function tries to make use of os.sendfile(). Currently, this is done in a loop that aborts as soon as sendfile() returns 0, as it is assumed that this signifies the end of the file. The problem: the return value of