From c5a9d55f67c4bd1b12e8f903a8a97d5e9c738ea1 Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Mon, 23 Oct 1995 21:40:29 +0000 Subject: [PATCH] syslog statements should not be called with \n git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6984 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnetd/sys_term.c | 6 +++--- src/appl/telnet/telnetd/utility.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/appl/telnet/telnetd/sys_term.c b/src/appl/telnet/telnetd/sys_term.c index 73cf0fb3f..8d52128ac 100644 --- a/src/appl/telnet/telnetd/sys_term.c +++ b/src/appl/telnet/telnetd/sys_term.c @@ -1443,7 +1443,7 @@ start_login(host, autologin, name) closelog(); execv(login_program, argv); - syslog(LOG_ERR, "%s: %m\n", login_program); + syslog(LOG_ERR, "%s: %m", login_program); fatalperror(net, login_program); /*NOTREACHED*/ } @@ -1665,12 +1665,12 @@ cleantmpdir(jid, tpath, user) { switch(fork()) { case -1: - syslog(LOG_ERR, "TMPDIR cleanup(%s): fork() failed: %m\n", + syslog(LOG_ERR, "TMPDIR cleanup(%s): fork() failed: %m", tpath); break; case 0: execl(CLEANTMPCMD, CLEANTMPCMD, user, tpath, 0); - syslog(LOG_ERR, "TMPDIR cleanup(%s): execl(%s) failed: %m\n", + syslog(LOG_ERR, "TMPDIR cleanup(%s): execl(%s) failed: %m", tpath, CLEANTMPCMD); exit(1); default: diff --git a/src/appl/telnet/telnetd/utility.c b/src/appl/telnet/telnetd/utility.c index 10199d334..0620922b3 100644 --- a/src/appl/telnet/telnetd/utility.c +++ b/src/appl/telnet/telnetd/utility.c @@ -61,10 +61,10 @@ ttloop() } ncc = read(net, netibuf, sizeof netibuf); if (ncc < 0) { - syslog(LOG_INFO, "ttloop: read: %m\n"); + syslog(LOG_INFO, "ttloop: read: %m"); exit(1); } else if (ncc == 0) { - syslog(LOG_INFO, "ttloop: peer died: %m\n"); + syslog(LOG_INFO, "ttloop: peer died: %m"); exit(1); } DIAG(TD_REPORT, {sprintf(nfrontp, "td: ttloop read %d chars\r\n", ncc); -- 2.26.2