On 09/02/2012 08:44 AM, Tom Eastep wrote:
> On 09/02/2012 08:06 AM, Mr Dash Four wrote:
>>> +    g_confdir=/etc/shorewall-lite
>>> +    g_product="Shorewall Lite"
>>> +    g_program=shorewall-lite
>>> +    g_basedir=/usr/share/shorewall-lite
>>> +    CONFIG_PATH="/etc/shorewall-lite:/usr/share/shorewall-lite"
>>> +    [ -n "${VARDIR:=/var/lib/shorewall-lite}" ]
>> Exactly!
>>
>> Why is g_confdir hard-coded and not set as ${CONFDIR}/shorewall-lite? Why is 
>> g_basedir also hard-coded and not set as ${SHAREDIR}/shorewall-lite? 
>> Finally, since VARDIR is not set yet, it would also be hard-coded to 
>> /var/lib/shorewall-lite.
>>
>
> THEY ARE NOT HARD-CODED -- They come from the first 'shorewallrc' file
> encountered on your CONFIG_PATH at the time of compilation.

And when you specify a configuration directory on the command line, the 
configuration directory becomes the first directory in $CONFIG_PATH.

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to