From owner-cvs-all@FreeBSD.ORG Sat May 10 10:34:32 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41B9837B401; Sat, 10 May 2003 10:34:32 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA9F343FBF; Sat, 10 May 2003 10:34:31 -0700 (PDT) (envelope-from gshapiro@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4AHYV0U087597; Sat, 10 May 2003 10:34:31 -0700 (PDT) (envelope-from gshapiro@repoman.freebsd.org) Received: (from gshapiro@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4AHYVmA087596; Sat, 10 May 2003 10:34:31 -0700 (PDT) Message-Id: <200305101734.h4AHYVmA087596@repoman.freebsd.org> From: Gregory Neil Shapiro Date: Sat, 10 May 2003 10:34:31 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/usr.sbin/syslogd syslogd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2003 17:34:33 -0000 gshapiro 2003/05/10 10:34:31 PDT FreeBSD src repository Modified files: (Branch: RELENG_4) usr.sbin/syslogd syslogd.c Log: MFC: 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. Revision Changes Path 1.114 +24 -17 src/usr.sbin/syslogd/syslogd.c Revision Changes Path 1.59.2.24 +20 -14 src/usr.sbin/syslogd/syslogd.c