[Olsr-dev] Lockfile naming bug in 0.9.x

Ferry Huberts (spam-protected)
Fri Jun 19 14:05:17 CEST 2015


The attached patch should fix the issue, please try it and report back.

On 19/06/15 13:16, Ferry Huberts wrote:
> Thanks for the report.
> Working on it.
>
> On 19/06/15 12:19, Malte wrote:
>> Hi!
>>
>> We're running two OLSRd instances on our routers (one IPv4, one IPv6).
>> 0.9.x breaks with that setup since there seems to be a bug that causes
>> the default lockfile name always set to be "olsrd-ipv4.lock".
>>
>> This bug seems to have been introduced in
>> http://www.olsr.org/git/?p=olsrd.git;a=commitdiff;h=089c78e208dcb0802ce93f47554a502ab8b77be5
>>
>>
>>
>> olsrd_get_default_lockfile()
>> http://www.olsr.org/git/?p=olsrd.git;a=blob;f=src/cfgparser/olsrd_conf.c;h=30e2829cfd1be2717fc25639a9cbdb0da5fea466;hb=089c78e208dcb0802ce93f47554a502ab8b77be5#l976
>>
>>
>> always sees cnf->ip_version==AF_INET, as that's the default that was
>> just set in line 932.
>>
>> Best,
>> Malte
>>
>

-- 
Ferry Huberts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-conf-lock_file-is-derived-config.patch
Type: text/x-patch
Size: 2940 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20150619/e33fef9b/attachment.bin>


More information about the Olsr-dev mailing list