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. Tha

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

2011-09-08 Thread Willy Tarreau
On Thu, Sep 08, 2011 at 02:22:29PM +0200, Brane F. Gra??nar wrote: > 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" pa

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, eve

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

2011-09-08 Thread Finn Arne Gangstad
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 > specified after it is relative to this dir, and you don't need a ful

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

2011-09-07 Thread Willy Tarreau
Hi again, On Thu, Sep 08, 2011 at 12:34:14AM +0200, Willy Tarreau wrote: > If there is a real need for what you describe in some environments, > (and I'm still doubting about it), I'd rather have a new flag on the > command line which would cause a chdir() to be issued with each loaded > config fi

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 construct would > open relative to the current directory. This would mean that > > ( cd /tmp ; haproxy -d -f /etc/haproxy/haprocy.cfg ) and > ( cd /etc/haproxy ; 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 construct would open 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 configuration fi