summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1999-05-26 13:30:10 +0000
committerlukem <lukem@NetBSD.org>1999-05-26 13:30:10 +0000
commit9daa8df4fa98aa054f3b1e551bd5b44acec0cfca (patch)
treea7977eac358492fab87df7a37d5a7668266904b7 /libexec
parentb4ed97563192b3de11996770f5537e9531c73c68 (diff)
move stuff around, so the `thank you' message is counted in the
syslogged bytecount.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpcmd.y13
1 files changed, 8 insertions, 5 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
index d4f0047a4b0..6685b2b4e38 100644
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -1,4 +1,4 @@
-/* $NetBSD: ftpcmd.y,v 1.30 1999/05/24 21:57:19 ross Exp $ */
+/* $NetBSD: ftpcmd.y,v 1.31 1999/05/26 13:30:10 lukem Exp $ */
/*
* Copyright (c) 1985, 1988, 1993, 1994
@@ -47,7 +47,7 @@
#if 0
static char sccsid[] = "@(#)ftpcmd.y 8.3 (Berkeley) 4/6/94";
#else
-__RCSID("$NetBSD: ftpcmd.y,v 1.30 1999/05/24 21:57:19 ross Exp $");
+__RCSID("$NetBSD: ftpcmd.y,v 1.31 1999/05/26 13:30:10 lukem Exp $");
#endif
#endif /* not lint */
@@ -195,6 +195,11 @@ cmd
"Total traffic for this session was %qd byte%s in %qd transfer%s.",
(qdfmt_t)total_bytes, PLURAL(total_bytes),
(qdfmt_t)total_xfers, PLURAL(total_xfers));
+ }
+ reply(221,
+ "Thank you for using the FTP service on %s.",
+ hostname);
+ if (logged_in) {
syslog(LOG_INFO,
"Data traffic: %qd byte%s in %qd file%s",
(qdfmt_t)total_data, PLURAL(total_data),
@@ -204,9 +209,7 @@ cmd
(qdfmt_t)total_bytes, PLURAL(total_bytes),
(qdfmt_t)total_xfers, PLURAL(total_xfers));
}
- reply(221,
- "Thank you for using the FTP service on %s.",
- hostname);
+
dologout(0);
}