1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Fix logging from remote hosts, which has been broken since (at least) revision

1.64, i.e. July of last year.  Also fix a minor style bug in the same code.

PR:		bin/28634
Pointy hat to:	dwmalone
Pointed out by:	my buggy DSL router's remote logging facility
This commit is contained in:
Dag-Erling Smørgrav 2001-09-13 05:09:14 +00:00
parent e85f8fa723
commit a5cc8abe03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83388

View File

@ -1414,8 +1414,9 @@ init(signo)
continue; continue;
} }
if (*p == '+' || *p == '-') { if (*p == '+' || *p == '-') {
host[0] = *p++; host[0] = *++p;
while (isspace(*p)) p++; while (isspace(*p))
p++;
if ((!*p) || (*p == '*')) { if ((!*p) || (*p == '*')) {
(void)strlcpy(host, "*", sizeof(host)); (void)strlcpy(host, "*", sizeof(host));
continue; continue;