summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-11-18 11:07:00 +0000
committeryar <yar@FreeBSD.org>2004-11-18 11:07:00 +0000
commit3851ed3f4f751a27179023592a684af66b6ffc9f (patch)
tree20503aaf6a135c5d2f74781feebbec3f327befff /libexec
parent750c66145333daf5110b186b9fa5225f120fa574 (diff)
downloadFreeBSD-src-3851ed3f4f751a27179023592a684af66b6ffc9f.zip
FreeBSD-src-3851ed3f4f751a27179023592a684af66b6ffc9f.tar.gz
'\n' needs not to appear in reply() strings.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 2b8ba9f..e98fde5 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1406,12 +1406,12 @@ skip:
syslog(LOG_INFO|LOG_AUTH,
"FTP LOGIN FAILED (HOST) as %s: permission denied.",
pw->pw_name);
- reply(530, "Permission denied.\n");
+ reply(530, "Permission denied.");
pw = NULL;
return;
}
if (!auth_timeok(lc, time(NULL))) {
- reply(530, "Login not available right now.\n");
+ reply(530, "Login not available right now.");
pw = NULL;
return;
}
@@ -2383,7 +2383,7 @@ void
fatalerror(char *s)
{
- reply(451, "Error in server: %s\n", s);
+ reply(451, "Error in server: %s", s);
reply(221, "Closing connection due to server error.");
dologout(0);
/* NOTREACHED */
OpenPOWER on IntegriCloud