summaryrefslogtreecommitdiff
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-12-30 06:08:59 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-12-30 06:08:59 +0000
commit58b90f7037c614b41bc37165fd10ca8c56f4fcc4 (patch)
tree316c6a726715533285d98b6eb65b5665c98b9394 /libexec/ftpd
parent518f903c1aef5539ecafc320cbda5d9bb47785a0 (diff)
Log the actual bytes transfered, rather than the original file size.
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 5ccc5aec090..d0b60f12d99 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftpd.c,v 1.84 2000/12/04 10:49:31 itojun Exp $ */
+/* $OpenBSD: ftpd.c,v 1.85 2000/12/30 06:08:58 angelos Exp $ */
/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */
/*
@@ -1136,7 +1136,7 @@ retrieve(cmd, name)
send_data(fin, dout, st.st_blksize, st.st_size,
(restart_point == 0 && cmd == 0 && S_ISREG(st.st_mode)));
if ((cmd == 0) && stats)
- logxfer(name, st.st_size, start);
+ logxfer(name, byte_count, start);
(void) fclose(dout);
data = -1;
done: