[PATCH] Allow syslogd to accept multiple configuration files

2011-11-09 Thread Ryan Stone
I've written the following patch to allow syslogd to accept multiple configuration files by passing multiple -f options. One use case for this is to specify a common configuration file that applies across multiple machines along with a second config file specific to the local machine. The patch

Re: [PATCH] Allow syslogd to accept multiple configuration files

2011-11-09 Thread Ryan Stone
On Wed, Nov 9, 2011 at 11:01 AM, Brooks Davis bro...@freebsd.org wrote: Do you happen to know why the code calloc's the struct filed's with 1's? I didn't do any investigation but that's seems like an odd pattern. calloc(1, sizeof(*f)) returns an array of 1 element of size sizeof(*f) that is

Re: [PATCH] Allow syslogd to accept multiple configuration files

2011-11-09 Thread Brooks Davis
On Wed, Nov 09, 2011 at 10:27:44AM -0500, Ryan Stone wrote: I've written the following patch to allow syslogd to accept multiple configuration files by passing multiple -f options. One use case for this is to specify a common configuration file that applies across multiple machines along

Re: [PATCH] Allow syslogd to accept multiple configuration files

2011-11-09 Thread Julian Elischer
On 11/9/11 8:21 AM, Ryan Stone wrote: On Wed, Nov 9, 2011 at 11:01 AM, Brooks Davisbro...@freebsd.org wrote: Do you happen to know why the code calloc's the struct filed's with 1's? I didn't do any investigation but that's seems like an odd pattern. calloc(1, sizeof(*f)) returns an array of 1