On Sat, 2008-04-19 at 16:13 +0200, Christoph Bartelmus wrote:
> Bastien Nocera "hadess@..." wrote:
> >>> I'm attaching a patch that I created to improve lircd.conf reading.
> >>> It adds support for the "include" directive within lircd.conf.
> >> I like the idea. I don't like the implementation because:
> >> - it depends on absolute filenames
> >> - it will not work with filenames that contain whitespace
> > Patch coming to implement something similar to the code in lirc_client.c
> > I don't see how this fixes the absolute filenames problems though. We'd need
> > to have another directive containing a searchpath to avoid using absolute
> > filenames, or did you just want to have names relative to the current config
> > file location working?
> Yes, support for names relative to the current config file location would
> be great.
Here goes. It's a very naive implementation, but should work fine on any