diff options
author | des <des@FreeBSD.org> | 2001-03-11 13:20:44 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-03-11 13:20:44 +0000 |
commit | 49ef2fb6090e7fd30bdca70bc0acbc3586d96a3d (patch) | |
tree | 17e5b54410f0eaef4f97085da1fc701916e1cda5 /libexec | |
parent | 968f03fddd4379863ecb490616f5827a8d9a79c6 (diff) | |
download | FreeBSD-src-49ef2fb6090e7fd30bdca70bc0acbc3586d96a3d.zip FreeBSD-src-49ef2fb6090e7fd30bdca70bc0acbc3586d96a3d.tar.gz |
When the file was transferred using sendfile(2), we forgot to keep track
of the transferred byte count. MFC candidate.
PR: bin/25699
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ftpd/ftpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 0a49405..43ab6bf 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1749,6 +1749,7 @@ send_data(instr, outstr, blksize, filesize, isreg) while (err != -1 && cnt < filesize) { err = sendfile(filefd, netfd, offset, len, (struct sf_hdtr *) NULL, &cnt, 0); + byte_count += cnt; offset += cnt; len -= cnt; |