summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2002-01-23 16:27:36 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2002-01-23 16:27:36 +0000
commit0ab1462eb84d037e6165f969c6cc2589ab1609e2 (patch)
tree753b9bef89bc08f18c6be21af2c770beebe03301 /libexec
parente09e526e374ef5885e77cbd79bdf08ff6e41cfd2 (diff)
don't use \n in reply().
millert@ ok
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 6f1f518c28e..7501b969201 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftpd.c,v 1.113 2002/01/07 03:56:02 millert Exp $ */
+/* $OpenBSD: ftpd.c,v 1.114 2002/01/23 16:27:35 mpech Exp $ */
/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */
/*
@@ -73,7 +73,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)ftpd.c 8.4 (Berkeley) 4/16/94";
#else
-static char rcsid[] = "$OpenBSD: ftpd.c,v 1.113 2002/01/07 03:56:02 millert Exp $";
+static char rcsid[] = "$OpenBSD: ftpd.c,v 1.114 2002/01/23 16:27:35 mpech Exp $";
#endif
#endif /* not lint */
@@ -913,14 +913,14 @@ pass(passwd)
syslog(LOG_INFO|LOG_AUTH,
"FTP LOGIN FAILED (HOST) as %s: approval failure.",
pw->pw_name);
- reply(530, "Approval failure.\n");
+ reply(530, "Approval failure.");
exit(0);
}
} else {
syslog(LOG_INFO|LOG_AUTH,
"FTP LOGIN CLASS %s MISSING for %s: approval failure.",
pw->pw_class, pw->pw_name);
- reply(530, "Permission denied.\n");
+ reply(530, "Permission denied.");
exit(0);
}
login_attempts = 0; /* this time successful */
@@ -1853,7 +1853,7 @@ fatal(s)
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 */