Re: [PATCH] Read acl included files relative to the configuration file

2011-09-11 Thread Willy Tarreau
Hi Finn, On Thu, Sep 08, 2011 at 11:21:34AM +0200, Finn Arne Gangstad wrote: On Thu, Sep 08, 2011 at 07:43:46AM +0200, Willy Tarreau wrote: Hi again, This morning I had an better idea : pass the config directory parameter on the command line and have haproxy chdir() to it. That way,

Re: [PATCH] Read acl included files relative to the configuration file

2011-09-08 Thread Brane F. Gračnar
On Thursday 08 of September 2011 11:21:34 Finn Arne Gangstad wrote: On Thu, Sep 08, 2011 at 07:43:46AM +0200, Willy Tarreau wrote: Hi again, This morning I had an better idea : pass the config directory parameter on the command line and have haproxy chdir() to it. That way, everything

Re: [PATCH] Read acl included files relative to the configuration file

2011-09-07 Thread Willy Tarreau
Hello, On Tue, Sep 06, 2011 at 04:03:00PM +0200, Finn Arne Gangstad wrote: Previously, files included with the acl .. -f filename construct would open filename relative to the current directory. This would mean that ( cd /tmp ; haproxy -d -f /etc/haproxy/haprocy.cfg ) and ( cd /etc/haproxy

[PATCH] Read acl included files relative to the configuration file

2011-09-06 Thread Finn Arne Gangstad
Previously, files included with the acl .. -f filename construct would open filename relative to the current directory. This would mean that ( cd /tmp ; haproxy -d -f /etc/haproxy/haprocy.cfg ) and ( cd /etc/haproxy ; haproxy -d -f /etc/haproxy/haprocy.cfg ) could give different results if the