SCCS-vsn: lib/libc/gen/syslog.c 5.5
-static char sccsid[] = "@(#)syslog.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)syslog.c 5.5 (Berkeley) %G%";
return;
/* output the message to the console */
return;
/* output the message to the console */
if (pid == -1)
return;
if (pid == 0) {
if (pid == -1)
return;
if (pid == 0) {
LogFile = open(ctty, O_WRONLY);
alarm(0);
strcat(o, "\r");
LogFile = open(ctty, O_WRONLY);
alarm(0);
strcat(o, "\r");
- write(LogFile, outline, c+1);
+ o = outline + index(outline, '>') + 1;
+ write(LogFile, outline, c + 1 - (o - outline));
close(LogFile);
exit(0);
}
close(LogFile);
exit(0);
}