Date: Thu, 25 Jul 2002 13:22:09 +0200 From: Robert Drehmel <robert@ferrari-electronic.de> 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> In-Reply-To: <200207250956.g6P9ubRc012433@freefall.freebsd.org> References: <200207250956.g6P9ubRc012433@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020725132209.A17888>