View | Details | Raw Unified | Return to bug 220246 | Differences between
and this patch

Collapse All | Expand All

(-)syslogd.c (-3 / +3 lines)
Lines 1219-1231 Link Here
1219
		/* check for local vs remote messages */
1219
		/* check for local vs remote messages */
1220
		if (strcasecmp(f->f_prevhost, LocalHostName))
1220
		if (strcasecmp(f->f_prevhost, LocalHostName))
1221
			l = snprintf(line, sizeof line - 1,
1221
			l = snprintf(line, sizeof line - 1,
1222
			    "<%d>%.15s Forwarded from %s: %s",
1222
			    "<%d>%.15s %s %s",
1223
			    f->f_prevpri, (char *)iov[0].iov_base,
1223
			    f->f_prevpri, (char *)iov[0].iov_base,
1224
			    f->f_prevhost, (char *)iov[5].iov_base);
1224
			    f->f_prevhost, (char *)iov[5].iov_base);
1225
		else
1225
		else
1226
			l = snprintf(line, sizeof line - 1, "<%d>%.15s %s",
1226
			l = snprintf(line, sizeof line - 1, "<%d>%.15s %s %s",
1227
			     f->f_prevpri, (char *)iov[0].iov_base,
1227
			     f->f_prevpri, (char *)iov[0].iov_base,
1228
			    (char *)iov[5].iov_base);
1228
			     LocalHostName, (char *)iov[5].iov_base);
1229
		if (l < 0)
1229
		if (l < 0)
1230
			l = 0;
1230
			l = 0;
1231
		else if (l > MAXLINE)
1231
		else if (l > MAXLINE)

Return to bug 220246