From 3851ed3f4f751a27179023592a684af66b6ffc9f Mon Sep 17 00:00:00 2001 From: yar Date: Thu, 18 Nov 2004 11:07:00 +0000 Subject: '\n' needs not to appear in reply() strings. --- libexec/ftpd/ftpd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libexec/ftpd/ftpd.c') 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 */ -- cgit v1.1