Date: Sun, 4 May 2003 15:05:40 -0700 (PDT) From: Gregory Neil Shapiro <gshapiro@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/syslogd syslogd.c Message-ID: <200305042205.h44M5fpm094937@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
gshapiro 2003/05/04 15:05:40 PDT FreeBSD src repository Modified files: usr.sbin/syslogd syslogd.c Log: 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 Revision Changes Path 1.114 +24 -17 src/usr.sbin/syslogd/syslogd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305042205.h44M5fpm094937>