From owner-cvs-all Thu Jul 25 4:31:47 2002 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 4F7E037B400; Thu, 25 Jul 2002 04:31:42 -0700 (PDT) Received: from alpha.develop.ferrari.net (host1.ferrari-electronic.de [62.159.79.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4072443E70; Thu, 25 Jul 2002 04:31:40 -0700 (PDT) (envelope-from robert@ferrari-electronic.de) Received: (from robert@localhost) by alpha.develop.ferrari.net (8.11.6/8.11.6/SuSE Linux 0.5) id g6PBM9n17966; Thu, 25 Jul 2002 13:22:09 +0200 Date: Thu, 25 Jul 2002 13:22:09 +0200 From: Robert Drehmel To: cvs-committers@FreeBSD.org Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/syslogd syslogd.c Message-ID: <20020725132209.A17888@alpha.develop.ferrari.net> References: <200207250956.g6P9ubRc012433@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200207250956.g6P9ubRc012433@freefall.freebsd.org> User-Agent: Mutt/1.3.22.1i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jul 25, 2002 at 02:56:37AM -0700, Robert Drehmel wrote: > robert 2002/07/25 02:56:37 PDT > > Modified files: > usr.sbin/syslogd syslogd.c > Log: > When reading a program name from the syslog configuration file, > do not stop copying it into a buffer when encountering a > non-alphanumerical character. Only stop at unprintable characters. > This makes syslogd work correctly with executables like `interp.bin', > `httpd_old', etc. Actually ...not. We do read the full file name from the syslog configuration now. But the program name in the message syslogd receives from the client program is not unambiguously parseable. I am going to commit a fix to stop parsing the program name from the incoming message when either ':' or '[' are encountered, hence programs with names containing them will not be handled correctly be syslogd. Another solution would be to prepend the string length to the program name in the client message and hack some sort of compatibility mode into syslogd to only use it if it is found. Comments? ciao, -robert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message