Unverified Commit 2cc8d550 by Stéphane Graber Committed by GitHub

Merge pull request #3582 from brauner/2020-11-17/bugfixes

file_utils: fix config file parsing
parents 59c6b066 7d84e2cd
......@@ -399,6 +399,7 @@ ssize_t __fd_to_fd(int from, int to)
break;
bytes_to_write = (size_t)bytes_read;
total_bytes += bytes_read;
do {
ssize_t bytes_written;
......@@ -409,7 +410,6 @@ ssize_t __fd_to_fd(int from, int to)
bytes_to_write -= bytes_written;
p += bytes_written;
} while (bytes_to_write > 0);
total_bytes += bytes_to_write;
}
return total_bytes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment