aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/syslogd
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2001-09-13 05:09:14 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2001-09-13 05:09:14 +0000
commita5cc8abe03f4c71acbc42614e2042d8fe47052d4 (patch)
tree1e227abf67910ae071139e295c96e5a78ef145a6 /usr.sbin/syslogd
parente85f8fa723015ee031031b6ce5db4802a1ce240a (diff)
downloadsrc-a5cc8abe03f4c71acbc42614e2042d8fe47052d4.tar.gz
src-a5cc8abe03f4c71acbc42614e2042d8fe47052d4.zip
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
Notes
Notes: svn path=/head/; revision=83388
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r--usr.sbin/syslogd/syslogd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index d790cb02f8d1..6d5baf2dad13 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -1414,8 +1414,9 @@ init(signo)
continue;
}
if (*p == '+' || *p == '-') {
- host[0] = *p++;
- while (isspace(*p)) p++;
+ host[0] = *++p;
+ while (isspace(*p))
+ p++;
if ((!*p) || (*p == '*')) {
(void)strlcpy(host, "*", sizeof(host));
continue;