1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix the fix.... (sigh).

Jeremy.
(This used to be commit 73cf9d04f6)
This commit is contained in:
Jeremy Allison 2002-01-03 21:37:45 +00:00
parent 41dd759a50
commit 894e87cb32

View File

@ -589,7 +589,7 @@ ssize_t transfer_file_internal(int infd, int outfd, size_t n, ssize_t (*read_fn)
num_written = 0;
while (num_written < read_ret) {
write_ret = (*write_fn)(outfd,buf + num_written, read_ret);
write_ret = (*write_fn)(outfd,buf + num_written, read_ret - num_written);
if (write_ret == -1) {
DEBUG(0,("transfer_file_internal: write failure. Error = %s\n", strerror(errno) ));