summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Insulander <hin@cvs.openbsd.org>2002-06-09 00:41:27 +0000
committerHans Insulander <hin@cvs.openbsd.org>2002-06-09 00:41:27 +0000
commit31b4bb2671a8840cece24114e751cc51e5833502 (patch)
treedfb2e7cea760fd077c4662ec4cfe16a6377329e1
parentc6c3c6918bafcdc031bbb9b1890a66ec79642a10 (diff)
no \n for syslog()
-rw-r--r--libexec/telnetd/sys_term.c6
-rw-r--r--libexec/telnetd/utility.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c
index 9a63b1f77da..88fdd56e004 100644
--- a/libexec/telnetd/sys_term.c
+++ b/libexec/telnetd/sys_term.c
@@ -1379,7 +1379,7 @@ start_login(const char *host, int autologin, char *name)
execv(new_login, (char *const*)argv.argv);
save_errno = errno;
- syslog(LOG_ERR, "%s: %m\n", new_login);
+ syslog(LOG_ERR, "%s: %m", new_login);
fatalperror_errno(net, new_login, save_errno);
/*NOTREACHED*/
}
@@ -1882,12 +1882,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, (char *)NULL);
- 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/libexec/telnetd/utility.c b/libexec/telnetd/utility.c
index b0332126b13..a16bc3ae340 100644
--- a/libexec/telnetd/utility.c
+++ b/libexec/telnetd/utility.c
@@ -65,10 +65,10 @@ ttloop(void)
if (ncc < 0) {
if (errno == EINTR)
return 1;
- 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\n");
+ syslog(LOG_INFO, "ttloop: peer died");
exit(1);
}
DIAG(TD_REPORT, {