syslog statements should not be called with \n
authorRichard Basch <probe@mit.edu>
Mon, 23 Oct 1995 21:40:29 +0000 (21:40 +0000)
committerRichard Basch <probe@mit.edu>
Mon, 23 Oct 1995 21:40:29 +0000 (21:40 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6984 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnetd/sys_term.c
src/appl/telnet/telnetd/utility.c

index 73cf0fb3f97ad184bc084dcb4a17dc55818a49eb..8d52128ac2518ef923508db07666d8881b4ab6df 100644 (file)
@@ -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:
index 10199d334c841867a1e49b42b56b20c7a3c68c93..0620922b307a52d79d924d0c4fb64cb0ad1c3884 100644 (file)
@@ -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);