freebsd-src/usr.sbin/syslogd
Gregory Neil Shapiro 4095c651b0 Cleanup hostname matching in syslogd:
1. Hostnames were not treated case insensitively in all cases.

2. The method for stripping hostnames when reading the syslog.conf
   differed from that when finding the hostname of an incoming request.
   This lead to a broken match check.  In my case, it meant I had to
   have '@scooter.smi.example.com.example.com' to have 'logger.example.com'
   properly save messages from 'scooter.smi.sendmail.com'.

3. Add paranoia to cfline() such that it doesn't try to access memory
   outside of the bounds of the f_host string.

4. While I am here, get rid of an outdated comment, argv[{0,1,2}] are now
   checked for NULL after the strdup() calls.

Reviewed by:	dwmalone
MFC after:	1 week
2003-05-04 22:05:40 +00:00
..
Makefile style.Makefile(5) 2003-04-04 17:49:21 +00:00
pathnames.h
syslog.conf.5 Allow multiple hosts or programs to be named in program 2003-02-13 00:08:56 +00:00
syslogd.8 Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
syslogd.c Cleanup hostname matching in syslogd: 2003-05-04 22:05:40 +00:00